Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kyleweiner/Sentiments
Sentiments is an iOS app written in Swift that analyzes text for positive or negative sentiment.
https://github.com/kyleweiner/Sentiments
Last synced: 3 months ago
JSON representation
Sentiments is an iOS app written in Swift that analyzes text for positive or negative sentiment.
- Host: GitHub
- URL: https://github.com/kyleweiner/Sentiments
- Owner: kyleweiner
- License: mit
- Created: 2016-02-05T18:49:04.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-05T06:59:10.000Z (about 8 years ago)
- Last Synced: 2024-04-04T19:34:06.499Z (7 months ago)
- Language: Swift
- Size: 1.61 MB
- Stars: 178
- Watchers: 8
- Forks: 13
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sentiments
![Platform: iOS](https://img.shields.io/badge/Platform-iOS-03A9F4.svg?style=flat)
![Sentiments Example](Assets/sentiments_example.gif)Sentiments is an iOS app written in Swift that analyzes text for positive or negative sentiment. Positive sentiment is highlighted in green and negative sentiment is highlighted in red. The color of the interface reflects the aggregate sentiment of the analyzed text.
## Usage
### Sentiments
1. Open `Sentiment-Analysis.xcworkspace`.
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).
3. Enter text in the text field and press the check button.### Highlight Sentiment Extension
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.
1. Launch Safari and navigate to a web page.
2. Tap the share button.
3. Tap the "Highlight Sentiment" icon.Note that the extension must first be enabled to complete step 3.
## Author
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.
## License
Copyright (c) 2016 Kyle Weiner. See the LICENSE file for details.