Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Dutch: Improve suggestions #887

Merged
merged 2 commits into from
Feb 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 1 addition & 23 deletions dictionaries/nl_NL/cspell-ext.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,3 @@
{
"id": "nl-nl",
"name": "Dutch (Netherlands) Dictionary",
"description": "Dutch (Netherlands) Dictionary",
"dictionaryDefinitions": [
{
"name": "nl-nl",
"path": "./Dutch.trie.gz",
"description": "Dutch (Netherlands) Dictionary"
}
],
"ignoreWords": ["A3-", "-A4"],
"languageSettings": [
{
"languageId": "*",
"locale": "nl,nl-NL",
"caseSensitive": true,
"ignoreRegExpList": [],
"includeRegExpList": [],
"patterns": [],
"dictionaries": ["nl-nl"],
"dictionaryDefinitions": []
}
]
"import": ["./cspell.config.yaml"]
}
35 changes: 14 additions & 21 deletions dictionaries/nl_NL/cspell.config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
id: nl-nl
language: nl
name: Dutch (Netherlands) Dictionary
description: Dutch (Netherlands) Dictionary
dictionaryDefinitions:
Expand All @@ -9,28 +8,22 @@ dictionaryDefinitions:
description: Dutch (Netherlands) Dictionary
dictionaryInformation:
locale: "nl-NL"
# cspell: ignore Zëqïéèöêüçàûîñäô
# cspell:ignore Zëqïéèöêüçàûîñäô
alphabet: a-zA-Zëqïéèöêüçàûîñäô
suggestionEditCosts:
- map: o(oo)|e(ee)|u(uu)|a(aa)|(ei)(ie)|(ou)(ui)
replace: 5
hunspellInformation:
aff: |
# cspell:ignoreRegExp /(TRY|MAP|REP|KEY)\s.*/g
TRY ernitsaoldgkupmchbvjwfzyx'’ëqïéèö.êüçàûîñäôERNITSAOLDGKUPMCHBVJWFZYX
# combined layout for BE and NL keyboards NL en BE
KEY qwertyuiop|asdfghjkl|zxcvbnm|qawsedrftgyhujikolp|azsxdcfvgbhnjmk|aze|qsd|lm|wx|aqz|qws|
NO-TRY -123456789

MAP eéèëê
MAP aáà
MAP iíìïî
MAP oóòöô
MAP uüúùû

REP e ee
REP ee e
REP o oo
- map: o(oo)|e(ee)|u(uu)|a(aa)|(ei)(ie)|(ou)(ui)|(ei)(ij)(ij)
replace: 50
- map: s(ss)|e(en)|n(nen)
replace: 75
# cspell:ignore eéèëê iíìïî oóòöô uüúùû
- map: MAP eéèëê|aáà|iíìïî|oóòöô|uüúùû|(ij)(ij)(IJ)(IJ)
replace: 1
# cspell:ignore eque oire oors
- map: (er)(ër)|(kju)(cue)|(oren)(oors)|(eck)(eque)|(ore)(oire)|(oor)(oir)|ü(ue)
replace: 75
- map: (en)(nen)(s)
description: Words are compounded in plural form
insDel: 90

ignoreWords:
- A3-
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"private": true,
"scripts": {
"test": "lerna run test",
"lint": "yarn run lint-format && cspell",
"lint": "yarn run lint-format && cspell --no-progress",
"lint-ci": "eslint . && prettier -c \"**/*.{md,json,yml,yaml}\" && cspell",
"lint-format": "eslint --fix . && prettier -w \"**/*.{md,json,yml,yaml}\"",
"build": "lerna run --concurrency 2 --stream build --no-bail",
Expand Down