enlanguageBuilt inEnglish: numbers in words, ordinals, articles, stop words, sounds-alike rules. On by default.
compare(a, b, { languages: ['en'] })Language packs teach fuzzy-toolkit how a language writes numbers, its articles, stop words and how it sounds. Presets are ready-made settings for one kind of data: song titles, addresses, company names... See Languages and presets to use or write one.
enlanguageBuilt inEnglish: numbers in words, ordinals, articles, stop words, sounds-alike rules. On by default.
compare(a, b, { languages: ['en'] })frlanguageBuilt inFrench: quatre-vingt-dix, ordinals, articles and elisions (l'), stop words, sounds-alike rules. On by default.
compare(a, b, { languages: ['fr'] })eslanguageBuilt inSpanish: treinta y dos, veintiuno, ordinals, articles, stop words, sounds-alike rules (b/v, ll/y, silent h).
import es from 'fuzzy-toolkit/lang/es'
compare(a, b, { languages: [es] })delanguageBuilt inGerman: einundzwanzig, ordinals, articles, stop words, sounds-alike rules (Müller = Mueller, Meier = Mayer).
import de from 'fuzzy-toolkit/lang/de'
compare(a, b, { languages: [de] })itlanguageBuilt inItalian: ventitré, ventuno, ordinals, articles and elisions, stop words, sounds-alike rules.
import it from 'fuzzy-toolkit/lang/it'
compare(a, b, { languages: [it] })nllanguageBuilt inDutch: eenentwintig, een en twintig, ordinals, articles, stop words, sounds-alike rules (ij/ei, v/f, z/s).
import nl from 'fuzzy-toolkit/lang/nl'
compare(a, b, { languages: [nl] })musicpresetBuilt inSong titles and artists: drops featurings, "Remastered", brackets and leading articles; & = and.
compare(a, b, { preset: 'music' })searchpresetBuilt inSearch as you type: prefixes, acronyms, lower threshold.
compare(a, b, { preset: 'search' })strictpresetBuilt inWord order and spaces matter, threshold 90.
compare(a, b, { preset: 'strict' })None yet. Yours could be the first: see below.
Updated 2026-11-26.
defineLanguage() or definePreset() and test it with fuzzy-toolkit/testing.fuzzy-toolkit-lang-<code> or fuzzy-toolkit-preset-<name>, with the keyword fuzzy-toolkit-plugin (details). It shows up here on the next rebuild of the site, at least once a week.docs/extensions.json:{
"package": "fuzzy-toolkit-lang-pt",
"kind": "language",
"id": "pt",
"description": "Portuguese: vinte e um, ordinals, articles, stop words, sounds-alike rules.",
"repository": "https://github.com/you/fuzzy-toolkit-lang-pt"
}A maintainer checks that the package does what it says and that its tests use fuzzy-toolkit/testing. A pack good enough for everyone can also be proposed for the core: open a "Language request" or "Preset proposal" issue.