4 releases (2 breaking)

0.4.2 Oct 9, 2022
0.4.0 Apr 22, 2022
0.3.0 Mar 6, 2022
0.2.0 Jan 17, 2022

#840 in Text processing

24 downloads per month
Used in glv

LGPL-3.0-or-later

29KB
719 lines

Subject Classifier

Library for classifying a commit by it's subject. Tries hard to recognize the subject type according to the commit message. Supports Conventional Commits Standard v1.0.0

use subject_classifier::Subject;

let subject = Subject::from("feat: Add a new feature XYZ");
println!("Icon: {}, scope {}, msg: {}",
        subject.icon(),
        subject.scope(),
        subject.description);

lib.rs:

Library for classifying a commit by it's subject. Tries hard to recognize the subject type according to the commit message. Supports Conventional Commits Standard v1.0.0

use subject_classifier::Subject;

let subject = subject_classifier::Subject::from("feat(Stuff): Add a new feature XYZ");
println!("Icon: {}, scope {:?}, msg: {}",
        subject.icon(),
        subject.scope(),
        subject.description());

Dependencies

~2.1–3MB
~53K SLoC