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'));
}
18
likes
150
points
691
downloads

Publisher

verified publisherworldtrollfootball.wtf

Weekly Downloads

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