
Security News
Oxlint Introduces Type-Aware Linting Preview
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
No, it's not a typo :grin:. According to Google Translate this is the Esperanto word for 'sentimental'.
Sentimetnal is a very simple sentiment analyzer based on Finn Årup Nielsen's AFINN word list.
It is basically a Ruby port of https://gist.github.com/fnielsen/4183541/ It returns a float for the sentiment strength of an input text.
Positive values are for a positive valence, negative values for a negative valence.
Add this line to your application's Gemfile:
gem 'sentimetnal'
And then execute:
$ bundle
Or install it yourself as:
$ gem install sentimetnal
require 'sentimetnal'
analyzer = Sentimetnal::Analyzer.new
sentiment = analyzer.sentiment("The best & most delicious beef and friendly staff!" # 1.7677669529663687
sentiment.to_rating # 4
sentinment.to_emoji # :smile:
I'd like to try translating the word list and prepare it for the use with other languages...
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)Unfortunately Ruby does not provide something like NLTK. But there are some interesting gems and code. I'm compiling my favorite ones here
FAQs
Unknown package
We found that sentimetnal demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.