welpo / git-sumi

The non-opinionated Rust-based commit message linter.
https://sumi.rs/
Apache License 2.0
10 stars 0 forks source link

Detect imperatives with prefixes #22

Open welpo opened 2 months ago

welpo commented 2 months ago

Feature Request

Summary

git-sumi should detect imperatives with prefixes. For example, "write" is in the list of non-imperative verbs (as "written", "wrote"), but "rewrite" is not.

Motivation

It would improve non-imperative-verb detection.

Detailed Description

The logic to detect imperative verbs should not only match the first word against the hashset, but check whether it matches a list of prefixes + a word in the list.

As an initial list of prefixes, we could consider:

Additional Context

It's probably a good idea to check for:

welpo commented 2 months ago

@bcignasi would you like to work on this?

bcignasi commented 1 month ago

Yeah. I'll get to it this week!