Skip to content

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

License

Notifications You must be signed in to change notification settings

cvan/lunr-unicode-normalizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published