Skip to content
pubscout

dart_sentiment

0.0.9, released 5 years ago by an unverified publisher

Perform sentiment analysis on text and emojis using AFINN-165 wordlists.

WASM-ready
$ flutter pub add dart_sentiment
Source repository

What it does

Dart Sentiment analyzes arbitrary blocks of input text and emojis to compute sentiment scores. It supports multiple languages including English, Italian, French, and German, returning detailed metrics like positive/negative token breakdowns and comparative scores.

AI-written summary of version 0.0.9, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to analyze the sentiment of user reviews or comments in multiple languages.
  • You want to factor in emoji sentiment alongside text analysis.

Skip it when

  • You require complex machine learning-based natural language processing beyond dictionary lookups.
  • You are working with languages not included in the supported list.

Strengths

  • Supports multiple languages (English, Italian, French, German).
  • Includes emoji sentiment ranking.
  • Provides detailed breakdown tokens, positive, and negative word lists.

Weaknesses

  • Relies on a static wordlist rather than advanced context-aware machine learning models.
  • Limited to four supported languages.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1
import 'package:dart_sentiment/dart_sentiment.dart';
void main() {
  final sentiment = Sentiment();
  print(sentiment.analysis("The cake she made was terrible 😐"));
}

Alternatives

Packages that do the same job and could replace dart_sentiment.

Works with

Packages commonly used together with dart_sentiment: ones it builds on, ones built on it, and its own family.