You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+12
Original file line number
Diff line number
Diff line change
@@ -7,10 +7,22 @@ Sentiments is an iOS app written in Swift that analyzes text for positive or neg
7
7
8
8
## Usage
9
9
10
+
### Sentiments
11
+
10
12
1. Open `Sentiment-Analysis.xcworkspace`.
11
13
2. Replace "YOUR_API_KEY" with your API key from [HPE Haven OnDemand](https://www.havenondemand.com) in [`AppConfig.swift`](https://github.com/kyleweiner/Sentiments/tree/master/Sentiment-Analysis/Constants/AppConfig.swift).
12
14
3. Enter text in the text field and press the check button.
13
15
16
+
### Highlight Sentiment Extension
17
+
18
+
The project includes an experimental action extension for analyzing the sentiment of text on a web page. The extension behaves similarly to the containing app–positive sentiment is highlighted in green and negative sentiment is highlighted in red.
19
+
20
+
1. Launch Safari and navigate to a web page.
21
+
2. Tap the share button.
22
+
3. Tap the "Highlight Sentiment" icon.
23
+
24
+
Note that the extension must first be enabled to complete step 3.
25
+
14
26
## Author
15
27
16
28
Sentiments was written and designed by Kyle Weiner. It uses [Alamofire](https://github.com/Alamofire/Alamofire), [SwiftyJSON](https://github.com/SwiftyJSON/SwiftyJSON) and [HPE Haven OnDemand](https://dev.havenondemand.com/apis/analyzesentiment#overview)'s Sentiment Analysis API.
0 commit comments