name-suggestion-index
Version:
Canonical common brand names for OpenStreetMap
12 lines • 576 B
TypeScript
/**
* Removes common "noise" words from a name string and then simplifies the result.
* Used to generate a stem for catching near-duplicate names
* (e.g. "First National Bank" and "First National" would produce the same stem).
*
* Noise words removed: bank/banc/banco, банк, coop, express, gas/fuel, wireless, shop/store.
*
* @param str - The input name string to stem
* @returns A simplified, de-noised string. Returns an empty string if the input is not a string.
*/
export declare function stemmer(str?: string): string;
//# sourceMappingURL=stemmer.d.ts.map