
Security News
Nx npm Packages Compromised in Supply Chain Attack Weaponizing AI CLI Tools
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
It is said that the name of Luigi came from similarity( it's called "ruigi" in Japanese) to Mario. And Ruigi is similarity calculation library, which is implemented by Ruby.
Now, only support TF-IDF and cosine similarity.
Add this line to your application's Gemfile:
gem 'ruigi'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ruigi
words = ["word1", "word2", ... , "wordN"]
document1 = Ruigi::Document.new(words)
corpus = [document1, document2, ... , documentN] # each element's type is Ruigi::Document.
model = Ruigi::Model.new(corpus)
model.feature_vector_of(0) # => return feature vector of 0th document
etc...
Bug reports and pull requests are welcome on GitHub at https://github.com/naoki-k/ruigi.
This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
FAQs
Unknown package
We found that ruigi 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
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.