FuzzyMatchOptions型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Settings for fuzzy string matching: the lowest similarity that counts, the largest edit distance, and phonetic matching.
インポート
import type { FuzzyMatchOptions } from "@johnmorrisdotca/address-plus";
定義
interface FuzzyMatchOptions {
threshold: number;
maxDistance: number;
enableSoundex?: boolean;
enableMetaphone?: boolean;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
threshold | number | |
maxDistance | number | |
enableSoundex (省略可) | boolean | undefined | |
enableMetaphone (省略可) | boolean | undefined |
例
import type { FuzzyMatchOptions } from "@johnmorrisdotca/address-plus";
console.log(({ threshold: 0.8, maxDistance: 2 }).maxDistance);
// → 22出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。