Skip to content

v1.1.0 - Support Minor Typos in Commands

Choose a tag to compare

@oadultradeepfield oadultradeepfield released this 07 Sep 04:43
· 13 commits to master since this release
e6de056

[2025-09-07] - Support Minor Typos in Commands

  • Added fuzzy matching for command keywords in CommandParser to tolerate minor typos (up to 2 edits).
  • Introduced FuzzyMatcher utility implementing Levenshtein distance for approximate string matching.
  • Added CommandType.allKeywords() to provide all command keywords for fuzzy matching.
  • Commands now correctly recognize input with small typos, improving usability (e.g., "fnd" → "find", "lits" → "list").
  • Maintains existing argument validation and no-argument command handling.