/** * @fileoverview Place-name folding, and the registry spellings of the country * and US state synonyms ClinicalTrials.gov resolves, for ranking a study's sites * against a requested location. * @module mcp-server/tools/utils/place-names */ /** * The words of a place name, folded the way upstream folds a location match so * a site ranks the way it was found: `Montréal` and `Montreal`, `Wrocław` and * `Wroclaw`, `St. Louis` and `St Louis`. Lowercased first, since stripping * marks before lowercasing changes context-dependent case mappings (`İ`); then * decomposed and stripped of combining marks; then the Latin letters with no * decomposition mapped; then periods and apostrophes deleted, so `D.C.` is one * word, `dc`; then split on every run of anything but letters and digits. Each * step is one linear pass over the name. */ export declare function foldedWords(name: string): string[]; /** * The registry's spelling of a requested country when it folds (`foldedWords`) * to a synonym row — `USA` and `u.s.a.` give `United States` — else the request * as given. */ export declare function registryCountry(requested: string): string; /** * The registry's spelling of a requested state: a US state or DC abbreviation * (`WA`, `d.c.`) gives its name when `country` is, or resolves through * `registryCountry` to, the United States; anything else is returned as given. */ export declare function registryState(requested: string, country: string): string; //# sourceMappingURL=place-names.d.ts.map