Textlint rule to check and fix the correct usage of diacritics.
For example:
- creme brulee → crème brûlée
- deja vu → déjà vu
- senorita → señorita
- doppelganger → doppelgänger
(You can add your own words too.)
npm install textlint-rule-diacritics
textlint --fix --rule diacritics Readme.md
You can configure the rule in your .textlintrc
:
{
"rules": {
"diacritics": {
// List of additional words
"words": [
"tâmia",
],
// OR load words from a file
"words": "~/words.json",
// OR load words from npm
"words": "@johnsmith/words"
}
}
}
Check the default diacritics list. Read more about configuring textlint.
- textlint-rule-apostrophe — correct apostrophe usage
- textlint-rule-stop-words — filler words, buzzwords and clichés
- textlint-rule-terminology — correct terms spelling
The change log can be found on the Releases page.
Everyone is welcome to contribute. Please take a moment to review the contributing guidelines.
Artem Sapegin and contributors.
MIT License, see the included License.md file.
Inspired by retext-diacritics.
Dictionary source: Wiktionary.