getNearMissMaxDistance
How many edits a name may be from another and still be its near miss.
Import:
import { getNearMissMaxDistance } from '@mnaoumov/obsidian-lib/broken-link-candidates';Signature:
function getNearMissMaxDistance(nameLength: number): numberParameters:
| Parameter | Type | Description |
|---|---|---|
nameLength |
number | The missing name’s length. |
Returns: number — The tolerance; 0 for a name too short to have a near miss.