# Install classifier with Homebrew

Text classification with Bayesian, LSI, Logistic Regression, and kNN. Version 2.6.0 via Homebrew; verified 2026-06-26.

## Install

```sh
sudo av install brew:classifier
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install classifier
```

  Evidence: local Homebrew formula metadata

## Package facts

- **Package key:** brew:classifier
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/classifier>
- **Version:** 2.6.0
- **Source summary:** Text classification with Bayesian, LSI, Logistic Regression, and kNN
- **Homepage:** <https://rubyclassifier.com>
- **Repository:** <https://github.com/cardmagic/classifier>
- **Upstream docs:** <https://rubyclassifier.com/docs>
- **License:** LGPL-2.1-or-later
- **Source archive:** <https://github.com/cardmagic/classifier/archive/refs/tags/v2.6.0.tar.gz>
- **Last updated:** 2026-06-26T00:37:48Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- classifier (cli)
- classifier (alias)

## Dependencies

- ruby

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.6.0
- Package-manager updated: 2026-06-26
- Local data: ok
- Upstream repository: https://github.com/cardmagic/classifier
- Upstream latest detected: v2.6.0 (current)
## Project history and usage

Ruby Classifier is a Ruby text-classification library and CLI providing Bayesian classification, LSI, logistic regression, k-nearest neighbors, TF-IDF vectorization, streaming training, persistence, and native LSI acceleration.

### Project history

The GitHub repository was created in 2008. The gemspec and README describe it as a Ruby library for text classification with Naive Bayes, LSI, logistic regression, kNN, TF-IDF, pluggable persistence, and a native C extension.

The modern 2.x series refreshed the package in late 2025 and 2026, adding current documentation at rubyclassifier.com and a CLI-oriented Homebrew distribution path.

### Adoption history

RubyGems reported 1,162,163 total downloads for the classifier gem, making the Ruby package history much larger than the Homebrew CLI footprint. Homebrew packages version 2.6.0 and reported 131 installs over the prior 365 days.

### How it is used

As a Ruby gem, users require classifier classes for Bayes, LSI, logistic regression, kNN, and TF-IDF workflows. As a CLI, users can classify text with pretrained models, list models, train categories from files, and classify new strings.

### Why package nerds care

classifier is notable because an old Ruby ML/text-processing gem now spans RubyGems, generated API docs, a dedicated docs site, native extension compilation, and a Homebrew CLI package.

### Timeline

- 2008: GitHub repository created.
- 2024: v1.4.4 released in the 1.x line.
- 2025: v2.0.0 released.
- 2026: v2.6.0 released and packaged by Homebrew as stable.

### Related projects

- The package relates to RubyGems and RubyDoc as its primary Ruby distribution and API documentation surfaces.
- Its README positions it against older forks by emphasizing additional algorithms, incremental LSI, streaming, persistence, and native acceleration.

### Sources

- <https://github.com/cardmagic/classifier#readme>
- <https://rubyclassifier.com/docs>
- <https://rubygems.org/api/v1/gems/classifier.json>
- <https://rubygems.org/api/v1/versions/classifier.json>
- <https://api.github.com/repos/cardmagic/classifier>
- <https://api.github.com/repos/cardmagic/classifier/releases>
- <https://formulae.brew.sh/api/formula/classifier.json>


## Security Notes

No matching local secret-handling manifest was found for classifier. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** classifier
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable


## Related links

- [Package publisher tools](https://www.automicvault.com/pkg/package-publishers/) - Belongs to a package publishing or registry command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [ruby](https://www.automicvault.com/pkg/brew/ruby/) - Runtime dependency declared by Homebrew.
- [djl-serving](https://www.automicvault.com/pkg/brew/djl-serving/) - Shares av.db curated category or tags: cli, data, machine-learning.
- [lightgbm](https://www.automicvault.com/pkg/brew/lightgbm/) - Shares av.db curated category or tags: cli, data, machine-learning.
- [mallet](https://www.automicvault.com/pkg/brew/mallet/) - Shares av.db curated category or tags: cli, data, machine-learning.
- [ncnn](https://www.automicvault.com/pkg/brew/ncnn/) - Shares av.db curated category or tags: cli, data, machine-learning.
- [rgf](https://www.automicvault.com/pkg/brew/rgf/) - Shares av.db curated category or tags: cli, data, machine-learning.
- [vowpal-wabbit](https://www.automicvault.com/pkg/brew/vowpal-wabbit/) - Shares av.db curated category or tags: cli, data, machine-learning.
- [mitie](https://www.automicvault.com/pkg/brew/mitie/) - Shares av.db curated category or tags: cli, data, machine-learning.
- [sentencepiece](https://www.automicvault.com/pkg/brew/sentencepiece/) - Shares av.db curated category or tags: cli, data, machine-learning.

## Combined YAML source

View the package source record on GitHub. [combined/classifier.yml](https://github.com/automic-vault/db/blob/main/combined/classifier.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- cross-ecosystem install command graph
