https://github.com/cvan/lunr-unicode-normalizer
an extension to lunr.js to normalize unicode characters by removing all diacritical marks
https://github.com/cvan/lunr-unicode-normalizer
Last synced: 11 months ago
JSON representation
an extension to lunr.js to normalize unicode characters by removing all diacritical marks
- Host: GitHub
- URL: https://github.com/cvan/lunr-unicode-normalizer
- Owner: cvan
- License: mit
- Created: 2014-01-10T23:43:15.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2017-02-11T00:11:50.000Z (over 9 years ago)
- Last Synced: 2025-04-30T06:07:55.469Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 7
- Watchers: 3
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lunr-unicode-normalizer
An extension to [lunr.js](http://lunrjs.com/) 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.