Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 650 Bytes

README.md

File metadata and controls

19 lines (12 loc) · 650 Bytes

lunr-unicode-normalizer

An extension to lunr.js to normalize unicode characters by removing all diacritical marks.

For example, searching for "facade" will return results for "façade" and searching for for "façade" will return results for "facade."

Usage

Just drop in the lunr.unicodeNormalizer.js script after lunr.js has been loaded. lunr.tokenizer will then be monkeypatched to use lunr.unicodeNormalizer, and you're good to go.

Usage with nodeJS

Install via npm npm install https://github.com/nekdolan/lunr-unicode-normalizer.git After lunr is loaded do require("lunr-unicode-normalizer")(lunr);