Skip to content

Commit

Permalink
feat: spellingscontrole
Browse files Browse the repository at this point in the history
Start van de spellingscontrole opzet op basis van CSpell.
Automatisering d.m.v. GitHub Actions moet nog.

Start voor issue #6

Signed-off-by: Nico Rikken <nico.rikken@alliander.com>
  • Loading branch information
nicorikken committed Mar 28, 2023
1 parent 12946ff commit 8ebc4a6
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,22 @@ Lokaal kan vervolgens de documentatie site gebouwd en getest worden met:
poetry run mkdocs serve
```

### Spellingscontrole

Dit project maakt gebruik van [CSpell](https://cspell.org/), een framework voor spellingscontrole dat goed rekening kan houden met code en andere gangbare platte-tekst formaten.
Het [nl-nl Dictionary](https://github.com/streetsidesoftware/cspell-dicts/tree/main/dictionaries/nl_NL) is gebaseerd op het eerdere werk in Hunspell.
Dit woordenboek is niet standaard aanwezig en moet expliciet geinstalleerd worden als je CSpell op je eigen computer wilt uitvoeren.
Spellingscontrole vindt ook online plaats door middel van een GitHub Action.

Lokaal installeren van CSpell en uitvoeren van de spellingscontrole:

```
npm install -g cspell@latest
npm install -g @cspell/dict-nl-nl
cspell link add @cspell/dict-nl-nl
cspell "**"
```

## Roadmap

Voor de [roadmap](https://github.com/orgs/ospo-nl/projects/1) gebruiken we GitHub Projects.
Expand Down
8 changes: 8 additions & 0 deletions cspell.config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
language: en
dictionaries: ["nl-nl"]
ignorePaths:
# Ignore GIMP files
- "**/*.xcf"
# Ignore License files that should not be touched
- "LICENSE"
- "LICENSES/*"

0 comments on commit 8ebc4a6

Please sign in to comment.