Linear classifiers group items based on the value of the linear combinations of features.

Within the Rust ecosystem, you can find a few libraries ranging from naive bayes implementations to support vector machines. These resources can help you get started: