Removing combining marks can make a secondary search index more forgiving. Preserve the original spelling in display and storage.
Worked example
console.log("crème brûlée".normalize("NFD").replace(/\p{M}/gu, ""));Result
creme bruleeImplementation notes
Normalization changes the search key. Two different names can then map to the same value, so index a list of candidates rather than a single winning record.
Try it yourself
Compare composed and decomposed accents and a letter that does not decompose into ASCII.
Open the JavaScript example →Editorial date June 9, 2026 · Published December 6, 2026