Releases: asarnaout/HumanDistance.Net
Releases · asarnaout/HumanDistance.Net
HumanDistance 1.0.0 — Keyboard‑aware typo detection for .NET
What’s New
- Keyboard‑aware Damerau‑Levenshtein: factors adjacent vs distant key substitutions.
- IsLikelyTypo(): adaptive, length‑aware boolean for real‑world typo detection.
- BestMatch(): picks the closest candidate from a set, with keyboard penalty tuning.
- Multiple layouts: QWERTY (default), AZERTY, QWERTZ + CustomKeyboardLayout builder.
- High performance: span‑based, case‑insensitive, zero allocations in hot paths.
Compatibility
- Target frameworks: net8.0, net10.0
- Case‑insensitive comparisons by default
Install
- dotnet add package HumanDistance
Examples
- hello → jello: IsLikelyTypo = true; hello → cello: false
- form → from: true; form → farm: false
- git → gti: true