sentiment_dart 0.0.5 copy "sentiment_dart: ^0.0.5" to clipboard
sentiment_dart: ^0.0.5 copied to clipboard

Sentiment Dart is a dart module that uses the AFINN-165 wordlist to perform sentiment analysis on arbitrary blocks of text

example/sentiment_dart_example.dart

import 'package:sentiment_dart/sentiment_dart.dart';

void main() {
  var customLang = {'i': 1, 'love': 1, 'dart': 5, 'car': 2};
  print(Sentiment.analysis('i love dart', customLang: customLang));

  print(Sentiment.analysis('i hate you piece of shit 💩'));

  print(Sentiment.analysis('i hate you piece of shit 💩', emoji: true));

  print(Sentiment.analysis('ti odio un pezzo di merda 💩', languageCode: 'it'));

  print(Sentiment.analysis('ti odio un pezzo di merda 💩',
      emoji: true, languageCode: 'it'));

  print(Sentiment.analysis('je te déteste merde 💩', languageCode: 'fr'));

  print(Sentiment.analysis('je te déteste merde 💩',
      emoji: true, languageCode: 'fr'));
}
17
likes
130
pub points
72%
popularity

Publisher

verified publisherworldtrollfootball.wtf

Sentiment Dart is a dart module that uses the AFINN-165 wordlist to perform sentiment analysis on arbitrary blocks of text

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

remove_emoji

More

Packages that depend on sentiment_dart