sentiment_dart
0.0.5, released 5 years ago by worldtrollfootball.wtf
Performs sentiment analysis on text using the AFINN-165 wordlist and emoji sentiment ranking.
WASM-ready
What it does
Sentiment Dart analyzes blocks of text to evaluate sentiment scores. It cross-checks string tokens and emojis against built-in language wordlists like English, Italian, French, and German, or custom language dictionaries.
AI-written summary of version 0.0.5, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to analyze text sentiment or emotional valence in Dart or Flutter.
- You want to process text with multi-language support (English, Italian, French, German).
- You want to include emoji sentiment in your text scoring.
Skip it when
- You require complex machine learning models or deep neural networks for semantic analysis.
Strengths
- Supports multiple languages out of the box.
- Includes emoji sentiment ranking.
- Allows custom language dictionaries.
Weaknesses
- Relies on a static wordlist (AFINN-165) rather than advanced AI/ML context evaluation.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
import 'package:sentiment_dart/sentiment_dart.dart';
main() {
print(Sentiment.analysis('i hate you piece of shit 💩', emoji: true));
}Alternatives
Packages that do the same job and could replace sentiment_dart.
- dart_sentiment
Perform sentiment analysis on text and emojis using AFINN-165 wordlists.
41Compare
Works with
Packages commonly used together with sentiment_dart: ones it builds on, ones built on it, and its own family.