import { closestString } from "https://deno.land/std@0.217.0/text/closest_string.ts";
get most-similar word
Examples
Example 1
Example 1
import { closestString } from "https://deno.land/std@0.217.0/text/closest_string.ts";
const possibleWords: string[] = ["length", "size", "blah", "help"];
// case-insensitive by default
const word = closestString("hep", possibleWords);