Code Monkey home page Code Monkey logo

cspell-dicts's Introduction

cspell-dicts

Various cspell dictionaries. Each dictionary is its own package. See README.md in each directory.

Support Future Development

  • GitHub Sponsors
  • Patreon
  • PayPal
  • Open Collective

Language Dictionaries

Programming Dictionaries

Specialized Dictionaries

All Dictionaries

package dictionary ID name description
@cspell/dict-ada ada Ada Language Ada Language Dictionary
@cspell/dict-al al AL AL Dictionary
@cspell/dict-ar ar Arabic Arabic dictionary for CSpell.
@cspell/dict-aws aws AWS AWS dictionary for cspell.
@cspell/dict-bash bash bash Bash dictionary for cspell.
@cspell/dict-bg-bg bg-bg Bulgarian Bulgarian dictionary for cspell.
@cspell/dict-ca ca Catalan Catalan dictionary for cspell.
@cspell/dict-city-names-finland city-names-finland Cities of Finland List of cities in Finland.
@cspell/dict-clojure clojure clojure Clojure dictionary for cspell.
@cspell/dict-companies companies Company names Company names dictionary for cspell.
@cspell/dict-cpp cpp-legacy
cpp
cpp-refined
C/C++ Dictionary C/C++ Keywords and common library functions.
@cspell/dict-cryptocurrencies cryptocurrencies
cryptocurrencies-legacy
Cryptocurrencies Cryptocurrencies dictionary for cspell.
@cspell/dict-cs-cz cs-cz Czech Czech dictionary for cspell.
@cspell/dict-csharp csharp csharp C# dictionary for cspell.
@cspell/dict-css css css Css dictionary for cspell.
@cspell/dict-da-dk da-dk Danish Dictionary Danish (da-DK) Dictionary.
@cspell/dict-dart dart dart Dart dictionary for cspell.
@cspell/dict-data-science data-science
data-science-models
data-science-tools
Data Science Data Science dictionary for cspell.
@cspell/dict-de-at de-at Austrian German Dictionary Austrian German (de-AT) Dictionary.
@cspell/dict-de-ch de-ch Swiss German Dictionary Swiss German (de-CH) Dictionary.
@cspell/dict-de-de de-de German Dictionary German (de-DE) Dictionary.
@cspell/dict-django django Django Keywords List of Python Django Framework keywords.
@cspell/dict-docker docker Docker Dictionary Docker dictionary for cspell.
@cspell/dict-dotnet dotnet .Net Dictionary .Net keywords.
@cspell/dict-el el Greek Greek dictionary for cspell.
@cspell/dict-elisp elisp Emacs Lisp Emacs Lisp dictionary for cspell.
@cspell/dict-elixir elixir elixir Elixir dictionary for cspell.
@cspell/dict-en-common-misspellings English - Common Misspellings Common English misspellings dictionary for cspell.
@cspell/dict-en-au en-au Australian English Dictionary Australian English Dictionary
@cspell/dict-en-ca en-ca Canadian English Dictionary Canadian English Dictionary
@cspell/dict-en-gb en-gb British English Dictionary British English Dictionary
@cspell/dict-en-gb-mit en-gb-mit British English Dictionary Limited British English Dictionary with MIT License
@cspell/dict-en_us en_us American English Dictionary American English Dictionary
@cspell/dict-en-shared en-shared en_shared English words shared between the various English dictionaries.
@cspell/dict-eo eo Esperanto Esperanto dictionary for cspell.
@cspell/dict-es-es es-es Spanish Dictionary (Spain) Spanish Dictionary (Spain)
@cspell/dict-et-ee et-ee Estonian Estonian dictionary for cspell.
@cspell/dict-eu eu Basque Basque dictionary for cspell.
@cspell/dict-fa-ir fa-ir Persian Dictionary Persian Dictionary
@cspell/dict-fi-fi fi-fi Finnish Finnish dictionary for cspell.
@cspell/dict-filetypes filetypes filetypes Filetypes dictionary for cspell.
@cspell/dict-fonts fonts font names Font names dictionary for cspell.
@cspell/dict-fr-fr fr-fr French Dictionary (France) French Dictionary (France)
@cspell/dict-fr-reforme fr-fr-90 Français Réforme 1990 Français Réforme 1990 dictionary for cspell.
@cspell/dict-fsharp fsharp f# F# dictionary for cspell.
@cspell/dict-fullstack fullstack Fullstack Common words encountered during fullstack development
@cspell/dict-gaming-terms gaming-terms Gaming Gaming dictionary for cspell.
@cspell/dict-git git git CSpell configuration for GIT
@cspell/dict-golang golang Go Language Go Language Dictionary
@cspell/dict-google google Google Google Cloud Development Dictionary for cspell.
@cspell/dict-grc grc Ancient Greek Ancient Greek dictionary for cspell.
@cspell/dict-haskell haskell Haskell Haskell dictionary for cspell.
@cspell/dict-he he Hebrew Dictionary Hebrew Dictionary
@cspell/dict-hr-hr hr-hr Croatian Croatian dictionary for cspell.
@cspell/dict-html html html Html dictionary for cspell.
@cspell/dict-html-symbol-entities html-symbol-entities HTML Symbol Entities HTML Symbol Entities Dictionary
@cspell/dict-hu-hu hu-hu Hungarian Hungarian dictionary for cspell.
@cspell/dict-id-id id-id Indonesia Indonesia dictionary for cspell.
@cspell/dict-it-it it-it Italian Italian dictionary for cspell.
@cspell/dict-java java Java Java dictionary for cspell.
@cspell/dict-julia julia Julia Dictionary Julia function and keyword dictionary
@cspell/dict-k8s k8s k8s K8s dictionary for cspell.
@cspell/dict-kotlin kotlin Kotlin Kotlin dictionary for cspell.
@cspell/dict-la la Latin Latin dictionary for cspell.
@cspell/dict-latex latex LaTeX LaTeX cspell dictionary
@cspell/dict-lorem-ipsum lorem-ipsum lorem-ipsum Lorem-ipsum dictionary for cspell.
@cspell/dict-lt-lt lt-lt Lithuanian Lithuanian dictionary for cspell.
@cspell/dict-lua lua lua Lua dictionary for cspell.
@cspell/dict-lv lv Latvian Latvian dictionary for cspell.
@cspell/dict-makefile makefile Makefile Makefile dictionary for cspell.
@cspell/dict-markdown markdown Markdown Markdown dictionary for cspell.
@cspell/dict-medicalterms medical terms Medical terms Medical Terms Dictionary
@cspell/dict-mnemonics mnemonics Mnemonics i86 Mnemonics dictionary for cspell
@cspell/dict-monkeyc monkeyc Monkey C Monkey C dictionary for cspell.
@cspell/dict-nb-no nb-no Norwegian Bokmål Norwegian Bokmål dictionary for cspell.
@cspell/dict-nl-nl nl-nl Dutch (Netherlands) Dictionary Dutch (Netherlands) Dictionary
@cspell/dict-node node Node.js Node.js dictionary for cspell.
@cspell/dict-npm npm NPM Dictionary of Common Javascript Packages.
@cspell/dict-people-names people-names People Names People Names dictionary for cspell.
@cspell/dict-php php PHP Dictionary Php dictionary for cspell.
@cspell/dict-pl_pl pl-pl Polish Dictionary Polish Dictionary
@cspell/dict-powershell powershell PowerShell Dictionary PowerShell Keyword Dictionary
@cspell/dict-pt-br pt-br Portuguese (Brazilian) Dictionary Portuguese (Brazilian) Dictionary
@cspell/dict-pt-pt pt-pt Portuguese Dictionary (Portugal) Portuguese Dictionary (Portugal)
@cspell/dict-public-licenses public-licenses Common Public Licenses Common Public Licenses dictionary for cspell.
@cspell/dict-python python
python-common
Python Dictionary Python Keyword Dictionary
@cspell/dict-r r R R dictionary for cspell.
@cspell/dict-redis redis redis Redis dictionary for cspell.
@cspell/dict-ro-ro ro-ro Romanian Romanian dictionary for cspell.
@cspell/dict-ru_ru ru-ru Russian Dictionary (Combined) Russian Dictionary (Combined)
@cspell/dict-ruby ruby Ruby For ruby and ruby on rails
@cspell/dict-rust rust Rust Dictionary Rust Keyword Dictionary
@cspell/dict-scala scala Scala Scala dictionary for cspell.
@cspell/dict-scientific-terms-gb scientific-terms-gb Scientific Terms GB Scientific Terms GB dictionary for cspell.
@cspell/dict-scientific-terms-us scientific-terms-us Scientific Terms US Scientific Terms US dictionary for cspell.
@cspell/dict-shell bash
shellscript
ShellScript ShellScript dictionary for cspell.
@cspell/dict-sk-sk sk-sk Slovak Slovak dictionary for cspell.
@cspell/dict-sl-si sl-si Slovenian Slovenian dictionary for CSpell.
@cspell/dict-software-terms softwareTerms
networking-terms
web-services
computing-acronyms
Software Terms Software terms dictionary for cspell.
@cspell/dict-sql sql sql SQL dictionary for CSpell.
@cspell/dict-sr-cyrl sr-cyrl Serbian (Cyrillic) Serbian (Cyrillic) dictionary for cspell.
@cspell/dict-sr-latn sr-latn Serbian (Latin) Serbian (Latin) dictionary for cspell.
@cspell/dict-sv sv Swedish Dictionary Swedish Dictionary
@cspell/dict-svelte svelte Svelte Svelte dictionary for cspell.
@cspell/dict-swift swift Swift Swift dictionary for cspell.
@cspell/dict-terraform terraform Terraform Terraform dictionary for cspell.
@cspell/dict-tr-tr tr-tr Turkish Turkish dictionary for cspell.
@cspell/dict-typescript typescript TypeScript TypeScript and JavaScript dictionary for cspell.
@cspell/dict-uk-ua uk-ua Ukrainian Dictionary Ukrainian Dictionary
@cspell/dict-vi-vn vi-vn Vietnamese Vietnamese dictionary for cspell.
@cspell/dict-vim vim Vim Vim developers dictionary for cspell.
@cspell/dict-vue vue CSpell configuration for VUE files
@cspell/dict-win32 win32 Win32 Win32 dictionary for cspell.

Documentation

See Documentation

Contributing

Please help correct any mistakes in the dictionaries.

See: Contributing

Special thanks to all of our amazing contributors!

How to create a new dictionary

Please fork this repository to add new dictionaries.

Install Pnpm

Installation | pnpm

Using Yeoman script

The Yeoman script can help you create the dictionary template files seen in most of dictionary directories.

Running the generator

In the cspell-dicts repository root.

Run pnpm to make sure everything is installed.

pnpm i

Run create-dictionary to start the Yeoman script.

pnpm create-dictionary

or

pnpm create-dictionary <name> <path/to/source/words>

Yeoman will ask you a series of questions:

Field Description
name this is the dictionary. i.e. en_AU or ruby
friendly name this is the friendly name, like Australian
description short description of the dictionary.
source file this is the source file to use to build the dictionary. It can be a .txt or hunspell .dic file. This file will be copied to the dictionary project.
locale this is the two letter language code with an optional cultural code. a * mean it will match any language. More than one locale can be added by separating them with a comma. i.e. en, en_AU.
languageId this is the VS Code programming language id or file type. * will match all file types. Examples: java, cpp, plaintext, markdown, ruby. Types know to cspell
store as trie for large source files (> 1MB) or hunspell files, this should be y. n will work for all programming language keyword files.
run build prepare the word list so it can be used by cspell efficiently. You can always run the build step yourself in the dictionary directory pnpm run build.

Once all the questions have been answered, the dictionary directory will be created and the files will be copied.

Please update README.md and LICENSE files as necessary.

Testing Dictionaries

Smoke test

Linking

From the dictionary directory

cspell link add ./cspell-ext.json

This will add an entry in the cspell global config to import the cspell-ext.json file in the dictionary directory.

Use either VS Code or cspell to verify that files spell check correctly.

Verify with cspell
  • Install cspell: npm install -g cspell
  • Check the global links: cspell link list
  • Check a file: cspell check <path/to/source/file.ext> [--locale=<locale>] [--language-id=<filetype>] Example: cspell check README.md --locale=en,es -- to check the readme file assuming English and Spanish words.

Checking a file will show you what has been ignored (gray) as well as what is considered an error (red):

image

Clean up

Remember to unlink when you are done:

cspell link remove ./cspell-ext.json

npm Global Install

From the dictionary directory:

npm install -g

From NPM repository:

npm install -g @cspell/dict-<name>

Then run the link command found in the dictionary README.md file. It has the following pattern: cspell link add @cspell/dict-<name>. To unlink: cspell link remove @cspell/dict-<name>



Brought to you by Street Side Software Logo Street Side Software

cspell-dicts's People

Contributors

abdusabri avatar aleksi avatar anthony0030 avatar arkid15r avatar calvinballing avatar canarduck avatar cidrblock avatar crapstone avatar d2s avatar dependabot[bot] avatar digger-yu avatar github-actions[bot] avatar jason3s avatar jaycenhorton avatar jim-hays-root avatar kevintraver avatar ki-er avatar kurt-von-laven avatar mwarres avatar ndac-todoroki avatar nschonni avatar phansys avatar rbalet avatar shaihu avatar simon-v-swyftx avatar street-side-software-automation[bot] avatar tas50 avatar trentbl avatar viktorstrate avatar zamiell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

cspell-dicts's Issues

Hebrew dictionary errors

Hi.
I getting those errors after enabling the Hebrew dictionary

`c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\util\hostReportError.js:9
setTimeout(function () { throw err; });
^

Error: Unknown file format
at SafeSubscriber.headerLines.pipe.subscribe.headerRows [as _next] (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\cspell-trie\dist\lib\importExport.js:131:19)
at SafeSubscriber.__tryOrUnsub (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\Subscriber.js:263:16)
at SafeSubscriber.next (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\Subscriber.js:201:22)
at Subscriber._next (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\Subscriber.js:139:26)
at Subscriber.next (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\Subscriber.js:103:18)
at DefaultIfEmptySubscriber._complete (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\operators\defaultIfEmpty.js:78:30)
at DefaultIfEmptySubscriber.Subscriber.complete (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\Subscriber.js:128:18)
at TakeLastSubscriber._complete (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\operators\takeLast.js:112:21)
at TakeLastSubscriber.Subscriber.complete (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\Subscriber.js:128:18)
at ScanSubscriber.Subscriber._complete (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\Subscriber.js:146:26)
[Info - 12:00:58 AM] Connection to server got closed. Server will restart.
c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\util\hostReportError.js:9
setTimeout(function () { throw err; });
^

Error: Unknown file format
at SafeSubscriber.headerLines.pipe.subscribe.headerRows [as _next] (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\cspell-trie\dist\lib\importExport.js:131:19)
at SafeSubscriber.__tryOrUnsub (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\Subscriber.js:263:16)
at SafeSubscriber.next (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\Subscriber.js:201:22)
at Subscriber._next (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\Subscriber.js:139:26)
at Subscriber.next (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\Subscriber.js:103:18)
at DefaultIfEmptySubscriber._complete (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\operators\defaultIfEmpty.js:78:30)
at DefaultIfEmptySubscriber.Subscriber.complete (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\Subscriber.js:128:18)
at TakeLastSubscriber._complete (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\operators\takeLast.js:112:21)
at TakeLastSubscriber.Subscriber.complete (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\Subscriber.js:128:18)
at ScanSubscriber.Subscriber._complete (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\Subscriber.js:146:26)
[Info - 12:00:59 AM] Connection to server got closed. Server will restart.
[Error - 12:00:59 AM] Request textDocument/codeAction failed.
Error: Connection got disposed.
at Object.dispose (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-jsonrpc\lib\main.js:825:25)
at Object.dispose (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-languageclient\lib\client.js:57:35)
at LanguageClient.handleConnectionClosed (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-languageclient\lib\client.js:1967:42)
at LanguageClient.handleConnectionClosed (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-languageclient\lib\main.js:126:15)
at closeHandler (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-languageclient\lib\client.js:1954:18)
at CallbackList.invoke (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-jsonrpc\lib\events.js:71:39)
at Emitter.fire (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-jsonrpc\lib\events.js:135:36)
at closeHandler (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-jsonrpc\lib\main.js:221:26)
at CallbackList.invoke (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-jsonrpc\lib\events.js:71:39)
at Emitter.fire (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-jsonrpc\lib\events.js:135:36)
at IPCMessageReader.AbstractMessageReader.fireClose (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-jsonrpc\lib\messageReader.js:135:27)
at ChildProcess. (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-jsonrpc\lib\messageReader.js:253:61)
at emitTwo (events.js:131:20)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Socket.ChildProcess.spawn.stream.socket.on (internal/child_process.js:346:11)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at Pipe.Socket._destroy.cb._handle.close [as _onclose] (net.js:554:12)
c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\util\hostReportError.js:9
setTimeout(function () { throw err; });
^

Error: Unknown file format
at SafeSubscriber.headerLines.pipe.subscribe.headerRows [as _next] (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\cspell-trie\dist\lib\importExport.js:131:19)
at SafeSubscriber.__tryOrUnsub (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\Subscriber.js:263:16)
at SafeSubscriber.next (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\Subscriber.js:201:22)
at Subscriber._next (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\Subscriber.js:139:26)
at Subscriber.next (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\Subscriber.js:103:18)
at DefaultIfEmptySubscriber._complete (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\operators\defaultIfEmpty.js:78:30)
at DefaultIfEmptySubscriber.Subscriber.complete (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\Subscriber.js:128:18)
at TakeLastSubscriber._complete (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\operators\takeLast.js:112:21)
at TakeLastSubscriber.Subscriber.complete (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\Subscriber.js:128:18)
at ScanSubscriber.Subscriber._complete (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\Subscriber.js:146:26)
[Info - 12:00:59 AM] Connection to server got closed. Server will restart.
[Error - 12:00:59 AM] Request textDocument/codeAction failed.
Error: Connection got disposed.
at Object.dispose (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-jsonrpc\lib\main.js:825:25)
at Object.dispose (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-languageclient\lib\client.js:57:35)
at LanguageClient.handleConnectionClosed (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-languageclient\lib\client.js:1967:42)
at LanguageClient.handleConnectionClosed (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-languageclient\lib\main.js:126:15)
at closeHandler (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-languageclient\lib\client.js:1954:18)
at CallbackList.invoke (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-jsonrpc\lib\events.js:71:39)
at Emitter.fire (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-jsonrpc\lib\events.js:135:36)
at closeHandler (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-jsonrpc\lib\main.js:221:26)
at CallbackList.invoke (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-jsonrpc\lib\events.js:71:39)
at Emitter.fire (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-jsonrpc\lib\events.js:135:36)
at IPCMessageReader.AbstractMessageReader.fireClose (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-jsonrpc\lib\messageReader.js:135:27)
at ChildProcess. (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-jsonrpc\lib\messageReader.js:253:61)
at emitTwo (events.js:131:20)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Socket.ChildProcess.spawn.stream.socket.on (internal/child_process.js:346:11)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at Pipe.Socket._destroy.cb._handle.close [as _onclose] (net.js:554:12)
c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\util\hostReportError.js:9
setTimeout(function () { throw err; });
^

Error: Unknown file format
at SafeSubscriber.headerLines.pipe.subscribe.headerRows [as _next] (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\cspell-trie\dist\lib\importExport.js:131:19)
at SafeSubscriber.__tryOrUnsub (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\Subscriber.js:263:16)
at SafeSubscriber.next (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\Subscriber.js:201:22)
at Subscriber._next (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\Subscriber.js:139:26)
at Subscriber.next (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\Subscriber.js:103:18)
at DefaultIfEmptySubscriber._complete (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\operators\defaultIfEmpty.js:78:30)
at DefaultIfEmptySubscriber.Subscriber.complete (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\Subscriber.js:128:18)
at TakeLastSubscriber._complete (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\operators\takeLast.js:112:21)
at TakeLastSubscriber.Subscriber.complete (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\Subscriber.js:128:18)
at ScanSubscriber.Subscriber._complete (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\Subscriber.js:146:26)
[Info - 12:01:00 AM] Connection to server got closed. Server will restart.
[Error - 12:01:00 AM] Request textDocument/codeAction failed.
Error: Connection got disposed.
at Object.dispose (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-jsonrpc\lib\main.js:825:25)
at Object.dispose (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-languageclient\lib\client.js:57:35)
at LanguageClient.handleConnectionClosed (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-languageclient\lib\client.js:1967:42)
at LanguageClient.handleConnectionClosed (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-languageclient\lib\main.js:126:15)
at closeHandler (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-languageclient\lib\client.js:1954:18)
at CallbackList.invoke (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-jsonrpc\lib\events.js:71:39)
at Emitter.fire (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-jsonrpc\lib\events.js:135:36)
at closeHandler (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-jsonrpc\lib\main.js:221:26)
at CallbackList.invoke (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-jsonrpc\lib\events.js:71:39)
at Emitter.fire (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-jsonrpc\lib\events.js:135:36)
at IPCMessageReader.AbstractMessageReader.fireClose (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-jsonrpc\lib\messageReader.js:135:27)
at ChildProcess. (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-jsonrpc\lib\messageReader.js:253:61)
at emitTwo (events.js:131:20)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Socket.ChildProcess.spawn.stream.socket.on (internal/child_process.js:346:11)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at Pipe.Socket._destroy.cb._handle.close [as _onclose] (net.js:554:12)
c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\util\hostReportError.js:9
setTimeout(function () { throw err; });
^

Error: Unknown file format
at SafeSubscriber.headerLines.pipe.subscribe.headerRows [as _next] (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\cspell-trie\dist\lib\importExport.js:131:19)
at SafeSubscriber.__tryOrUnsub (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\Subscriber.js:263:16)
at SafeSubscriber.next (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\Subscriber.js:201:22)
at Subscriber._next (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\Subscriber.js:139:26)
at Subscriber.next (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\Subscriber.js:103:18)
at DefaultIfEmptySubscriber._complete (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\operators\defaultIfEmpty.js:78:30)
at DefaultIfEmptySubscriber.Subscriber.complete (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\Subscriber.js:128:18)
at TakeLastSubscriber._complete (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\operators\takeLast.js:112:21)
at TakeLastSubscriber.Subscriber.complete (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\Subscriber.js:128:18)
at ScanSubscriber.Subscriber._complete (c:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\server\node_modules\rxjs\internal\Subscriber.js:146:26)
[Error - 12:01:01 AM] Connection to server got closed. Server will not be restarted.
[Error - 12:01:01 AM] Request textDocument/codeAction failed.
Error: Connection got disposed.
at Object.dispose (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-jsonrpc\lib\main.js:825:25)
at Object.dispose (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-languageclient\lib\client.js:57:35)
at LanguageClient.handleConnectionClosed (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-languageclient\lib\client.js:1967:42)
at LanguageClient.handleConnectionClosed (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-languageclient\lib\main.js:126:15)
at closeHandler (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-languageclient\lib\client.js:1954:18)
at CallbackList.invoke (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-jsonrpc\lib\events.js:71:39)
at Emitter.fire (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-jsonrpc\lib\events.js:135:36)
at closeHandler (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-jsonrpc\lib\main.js:221:26)
at CallbackList.invoke (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-jsonrpc\lib\events.js:71:39)
at Emitter.fire (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-jsonrpc\lib\events.js:135:36)
at IPCMessageReader.AbstractMessageReader.fireClose (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-jsonrpc\lib\messageReader.js:135:27)
at ChildProcess. (C:\Users\Igor.vscode\extensions\streetsidesoftware.code-spell-checker-1.6.10\node_modules\vscode-jsonrpc\lib\messageReader.js:253:61)
at emitTwo (events.js:131:20)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Socket.ChildProcess.spawn.stream.socket.on (internal/child_process.js:346:11)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at Pipe.Socket._destroy.cb._handle.close [as _onclose] (net.js:554:12)
`

Shellscript dictionary missing `esac`

I've noticed that on shell scripts, the word esac is shown as an error. esac is the end statement for the case command, which is analogous to switch in many other languages.
I was trying to figure out how your dictionaries files work, but it seems that shell scripts might just use a combination of other dictionaries, so I wasn't sure where (or how) to contribute.

Add some words

This words are related to blockchain development:

  • Whitepaper
  • Deployer
  • Testnet
  • Subnode
  • Subnodes

Add Java and Scala dictionaries

Java and Scala are popular languages that are being used more and more with VS Code (in fact, Code is the only supported IDE for the Scala 3 prototype, Dotty). Simple dictionaries similar to what is provided for Python and other languages would be helpful to catch contractions and terms which are used in these languages.

Missing `link.js` file from the generator-cspell-dicts template

Noticed that the Yeoman generator is missing the link.js file.

It is not possible to link run npm run cspell-link without it.

➜  fonts git:(master) ✗ npm run cspell-link

> [email protected] cspell-link  [edited the full file system path out] /cspell-dicts/fonts
> node link.js

module.js:491
    throw err;
    ^

Error: Cannot find module ' [edited the full file system path out] /cspell-dicts/fonts/link.js'
    at Function.Module._resolveFilename (module.js:489:15)
    at Function.Module._load (module.js:439:25)
    at Function.Module.runMain (module.js:609:10)
    at startup (bootstrap_node.js:158:16)
    at bootstrap_node.js:578:3
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] cspell-link: `node link.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] cspell-link script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Besides of that, apparently there should also be unlink.js and util.js so that the npm task would work properly. Copied such files manually from the recent fr_FR dictionary's directory to see whether things would work. Looks like that those files would either need to be added to the template, or alternatively the npm tasks could be updated to use some central tool instead of spreading similar files to each of the template directories.

Support C++ numeric seperators

C++ allows using a single quote to provide visual separation in numbers.

Example:

int a = 0xABCDFFFEF
int a = 0xABCD'FFFEF

Screen Shot 2019-11-19 at 21 23 14

The ABCD'FFFEF should not be marked as incorrectly spelled.

Find a file for known names

I wanted to add those under the companies folder, but I'm not sure if they will fit there
they are :

  • app name
  • tool names
  • website
    "unpkg",
    "reddit",
    "xbox",
    "whatsapp",
    "snapchat",
    "xing",
    "vimeo",
    "tumblr",
    "undraw",
    "crowdin",
    "docusaurus",
    "dayjs",
    "reactstrap"

Could maybe someone show me where and if I should add those

How to add some missing in Linux enviroment?

Which category i must update for add this following words:
it's almost used in ansible playbooks mark as invalid but it's list a such popular names.

        "ansible",
        "influxdb",
        "ipset",
        "nignx",
        "swappiness",
        "syslog",
        "systemctl",
        "systemd",
        "telegraf",
        "wireguard"

Spellchecker incorrectly accepts spelling 'formated'

The spellchecker incorrectly accepts 'formated' as a correct spelling, even though it is a misspelling of 'formatted'.

Steps to Reproduce
Type 'formated' into an editor window that is spell checked, either as a standalone or compound identifier.

Expected behavior
Word is marked as misspelled.

Actual behavior
Word is not marked as misspelled.

Version
Version is 1.7.20, default dictionary, formated is not added to cSpell.userWords or cSpell.words, ignoreWords is empty, no cSpell.json files are present. File type: Javascript. Language: 'en,en-GB'

Russian dictionary errors

Cspell marked these words as incorrect, although they are correct:
Средняя, страницу, базовая, успеха, информационная, требующая, внимания, основная, использовании, разработчика, потребуется, классы, помощью, типов, кнопки, Демонстрация

Report missing words for Persian dictionary

Can I report missing words?
In the Persian dictionary, some words are missing, about 172 Iran city names.

        "آبیک"
        "آخوندمحله"
        "آخوندملک"
        "آشار"
        "آشخانه"
        "آقاجاری"
        "آقاحسن"
        "آقچه"
        "آلمالو"
        "آناخاتون"
        "اباتر"
        "احمدان"
        "ارجویه"
        "اردجان"
        "ارزیل"
        "ارشادمحله"
        "اروانه"
        "اروجعلیلو"
        "ازگنین"
        "استرقان"
        "استوه"
        "اسطلخ"
        "اسفزار"
        "اسفه"
        "افتر"
        "اقبالیه"
        "الشتر"
        "الوم"
        "الینجق"
        "امیرکلا"
        "اندرمان"
        "اندرگان"
        "انگنه"
        "اوبه"
        "اژدهابلوچ"
        "ایرا"
        "باباباغی"
        "بارازلو"
        "براب"
        "برداسکن"
        "برغان"
        "بروغن"
        "بهجان"
        "بوانات"
        "بوزایه"
        "بولالو"
        "بوچیر"
        "بوکت"
        "بیدخت"
        "بیرلان"
        "بیهود"
        "بیوران"
        "بیورزین"
        "تجرق"
        "تدرویه"
        "تشنیز"
        "تلاجیم"
        "تورنگ"
        "توشمانلو"
        "تولون"
        "تپیک"
        "جامغان"
        "جنبذ"
        "حاجیلار"
        "حماملو"
        "خراشاد"
        "خرمکوه"
        "خرگرد"
        "خشکرود"
        "خناوین"
        "خوانسر"
        "خیاروه"
        "دارباغ"
        "دازگاره"
        "دانالو"
        "درازاب"
        "دلازیان"
        "دهبارز"
        "دهتل"
        "دهلاویه"
        "دهکستان"
        "دودران"
        "دولوئی"
        "دیزج"
        "رازیان"
        "رامیان"
        "راژان"
        "رحمانلو"
        "رزجرد"
        "رشتخوار"
        "رودبست"
        "ریاب"
        "زاغل"
        "زرینشهر"
        "زواجر"
        "ساسولی"
        "ساوان"
        "سرابله"
        "سندگان"
        "سنگرتپه"
        "سهرون"
        "سودکلا"
        "سپیداره"
        "سیاوشان"
        "سیوان"
        "شیشوان"
        "طلائیه"
        "طورآغای"
        "طینوج"
        "عبدیا"
        "عجبشیر"
        "فداغ"
        "فرخشهر"
        "فریدونشهر"
        "فشند"
        "فشندک"
        "فولادمحله"
        "قائمشهر"
        "قبادبزن"
        "قروق"
        "قهدریجان"
        "قوزلوجه"
        "قیصرق"
        "لاسجرد"
        "لاور"
        "لجران"
        "لسکه"
        "لمزان"
        "مراغان"
        "مرانک"
        "مراکان"
        "مرقشه"
        "مزایجان"
        "مغدان"
        "مهویزان"
        "مورود"
        "نامق"
        "نانسا"
        "ناهارخوران"
        "ناچیت"
        "نبرین"
        "هرزویل"
        "هروان"
        "هرگلان"
        "هنگویه"
        "وادقان"
        "واریان"
        "وسفونجرد"
        "ولینجق"
        "پازنویه"
        "پلگی"
        "پوده"
        "چاشم"
        "چرزه"
        "چلگرد"
        "چنشت"
        "چهاربرود"
        "چهرقان"
        "چوپانکره"
        "کاشانتو"
        "کامیاران"
        "کبودر"
        "کلیبر"
        "کمشک"
        "کهلا"
        "کوخرد"
        "کودزر"
        "کوراکش"
        "کوشال"
        "گراش"
        "گرناویک"
        "گوابر"

Disable check on too long ALL CAPS words

Because when Internationalizing an app we may use all caps words, it would be nice to disable the spell checker on an "all caps" words longer than 5 character.

image

What should/does the cpp dictionary contain

I was looking to see if I could clean up the cpp dictionary since i've hit a few questions. It looks like it was probably sourced from some header files for some different things (EX: found that a chunk was from the CUPS printer header files).
I'm wondering what should be in here?

  • CPP keywords
  • standard library headers
  • other headers

I'll submit some PRs for some things, but I was wondering if these should get split into separate files, then rejoined at the compile time.

French Elision missing.

A lot of proper french words are being categorised as invalid spellings.

Particularily anything that seems to be an elision
https://en.wikipedia.org/wiki/Elision_(French)

Some very common french words that are showing up as misspellings:

c'est
d'un
d'une
j'aime

Basically any (Maybe not) word that is an elision is showing up as an error.

Long running build process for a very small file

While starting to create a new dictionary package (companies), I noticed that running build process takes a lot of time. In this case, I took a screenshot after 15 minutes, but the build process continued running until I closed it manually (after 16 minutes since starting).

screenshot from 2017-07-30 13-39-37 cspell-tools running for over 15 minutes

Command used to build the dictionary:

npm run build

Dictionary file companies.txt contents are basically almost empty:

Apple

Just wondering if this is an expected behaviour from cspell-tools or have I found a bug?

French misspelling not detected

I have the word amitité (misspell of "amitié") which is not detected. I don't have it in my user words so it should be flagged as misspelling.

It is not in the words list so it may have something to do with something else?

How can I test my dictionary?

Thanks for the great plugin. I wanted to add support for Elixir, so I tried creating a dictionary myself.
https://github.com/ndac-todoroki/cspell-dicts/tree/add-elixir

While I tried to follow the instructions written in the README, several things didn't go straghtwards.

1. https://github.com/Jason3S/cspell-dicts#running-the-generator

  • In the cspell-dicts repository root.

  • This failed when performing "run build"
I'm all done. Running npm install for you to install the required dependencies.If this fails, try running the command yourself.


npm notice created a lockfile as package-lock.json. You should commit this file.
added 38 packages from 21 contributors and audited 94 packages in 6.291s
found 0 vulnerabilities


> [email protected] prepublishOnly /home/todoroki/git/cspell-dicts/test
> cp ../../util/* .

cp: '../../util/*' を stat できません: そのようなファイルやディレクトリはありません
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] prepublishOnly: `cp ../../util/* .`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] prepublishOnly script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/todoroki/.npm/_logs/2018-06-21T08_23_37_391Z-debug.log

I think this should be run under packages (when I did it it went well)

2. https://github.com/Jason3S/cspell-dicts#smoke-test

  • I could run these commands
  • I am not sure how to check it.

I created an example elixir script and opened it, but the spell checker claimed wrong spellings. I'm not sure whether my smoke-test setups have failed, or, my dictionary files are wrongly configured and thus not working.

It'll be great if you can support me with these two points.

Thanks in advance,
Todoroki

Problems with the danish dictionary

2 days ago, I submitted a danish dictionary.
It seems like something have gone wrong when compressing da_DK.trie.gz
The file is only 20 bytes large, and when I uncompress the file, only an empty file comes out. Link to file.

I have tried to compress the .dic file using cspell-tools, but this also generates a .trie.gz with the size of 20 bytes.

$ cspell-tools compile-trie da_DK.dic

Compile:
 output: default
 compress: true
 files:
  da_DK.dic


Process "da_DK.dic" to "da_DK.trie.gz"
Complete.

I have tried to load the .dic file uncompressed in my user settings:

"cSpell.dictionaryDefinitions": [
        {
            "name": "danish",
            "path": "/Users/viktorstrate/Documents/dictionaries/da_DK.dic",
            "description": "Danish dictionary"
        }
    ],

But it doesn't look like it reconizes the affix file (.aff) located at "/Users/viktorstrate/Documents/dictionaries/da_DK.aff". Do I have to specify this path in my user settings, for cspell to use it?

Currently I use a 4,5mb wordlist, this works fine, but the CPU running at 100% when loading the word list.

"cSpell.dictionaryDefinitions": [
        {
            "name": "danish-wordlist",
            "path": "/Users/viktorstrate/Documents/dictionaries/da_DK.txt",
            "description": "Danish (txt wordlist)"
        }
    ],

EDIT:
It looks like this is a problem with hunspell-reader, as it cannot convert the dic and aff files. streetsidesoftware/hunspell-reader#2

“doesn’t” word

It looks like doesn is in the powershell dictionary, but not in a general English dictionary.

Should it be doesn’t and doesn't? Or is punctuation like that not supported and generally ignored, resulting in partial-words being added like doesn?

generator-cspell-dicts fails to install because of outdated package.json

Found various issues with the generator:

  • npm link failed because nsp was not installed on the system.
  • Lack of migration from nsp check to npm audit.
  • Outdated Jest version with security issues (found by npm audit).
  • Potentially broken test suite that fails to work in a Windows machine.

First issue was caused by the lack of nsp command on the system, but when I started to look more closely, found out that The Node Security Platform service was shut down 30.9.2018.

nsp package has a huge big warning banner on the top of page, saying that "This package has been deprecated". It would make sense to replace the "prepublish": "nsp check" with the use of npm audit command. Documentation for it has the exact details about command options, but similar prepublish command compared to the original nsp could be this:

"prepublish": "npm audit"

In addition to that line, we need to remove nsp package from the required devDependencies.

When running the npm link command again after doing the previous steps, noticed that it found "16 low severity vulnerabilities in 48756 scanned packages" The recommendation was to "run npm audit fix to fix 16 of them."

                       === npm audit security report ===

# Run  npm install --save-dev [email protected]  to resolve 7 vulnerabilities

  Low             Prototype pollution

  Package         merge

  Dependency of   jest-cli [dev]

  Path            jest-cli > jest-haste-map > sane > exec-sh > merge

  More info       https://nodesecurity.io/advisories/722




  Low             Prototype pollution

  Package         merge

  Dependency of   jest-cli [dev]

  Path            jest-cli > jest-runner > jest-haste-map > sane > exec-sh >
                  merge

  More info       https://nodesecurity.io/advisories/722




  Low             Prototype pollution

  Package         merge

  Dependency of   jest-cli [dev]

  Path            jest-cli > jest-runner > jest-haste-map > sane > watch >
                  exec-sh > merge

  More info       https://nodesecurity.io/advisories/722




  Low             Prototype pollution

  Package         merge

  Dependency of   jest-cli [dev]

  Path            jest-cli > jest-runner > jest-runtime > jest-haste-map >
                  sane > exec-sh > merge

  More info       https://nodesecurity.io/advisories/722




  Low             Prototype pollution

  Package         merge

  Dependency of   jest-cli [dev]

  Path            jest-cli > jest-runner > jest-runtime > jest-haste-map >
                  sane > watch > exec-sh > merge

  More info       https://nodesecurity.io/advisories/722




  Low             Prototype pollution

  Package         merge

  Dependency of   jest-cli [dev]

  Path            jest-cli > jest-runtime > jest-haste-map > sane > exec-sh >
                  merge

  More info       https://nodesecurity.io/advisories/722




  Low             Prototype pollution

  Package         merge

  Dependency of   jest-cli [dev]

  Path            jest-cli > jest-runtime > jest-haste-map > sane > watch >
                  exec-sh > merge

  More info       https://nodesecurity.io/advisories/722



# Run  npm update jest-cli --depth 2  to resolve 6 vulnerabilities

  Low             Prototype pollution

  Package         merge

  Dependency of   jest [dev]

  Path            jest > jest-cli > jest-haste-map > sane > exec-sh > merge

  More info       https://nodesecurity.io/advisories/722




  Low             Prototype pollution

  Package         merge

  Dependency of   jest [dev]

  Path            jest > jest-cli > jest-runner > jest-runtime >
                  jest-haste-map > sane > exec-sh > merge

  More info       https://nodesecurity.io/advisories/722




  Low             Prototype pollution

  Package         merge

  Dependency of   jest [dev]

  Path            jest > jest-cli > jest-haste-map > sane > watch > exec-sh >
                  merge

  More info       https://nodesecurity.io/advisories/722




  Low             Prototype pollution

  Package         merge

  Dependency of   jest [dev]

  Path            jest > jest-cli > jest-runtime > jest-haste-map > sane >
                  exec-sh > merge

  More info       https://nodesecurity.io/advisories/722




  Low             Prototype pollution

  Package         merge

  Dependency of   jest [dev]

  Path            jest > jest-cli > jest-runner > jest-haste-map > sane >
                  watch > exec-sh > merge

  More info       https://nodesecurity.io/advisories/722




  Low             Prototype pollution

  Package         merge

  Dependency of   jest [dev]

  Path            jest > jest-cli > jest-runtime > jest-haste-map > sane >
                  watch > exec-sh > merge

  More info       https://nodesecurity.io/advisories/722



# Run  npm update jest-runner --depth 3  to resolve 2 vulnerabilities

  Low             Prototype pollution

  Package         merge

  Dependency of   jest [dev]

  Path            jest > jest-cli > jest-runner > jest-haste-map > sane >
                  exec-sh > merge

  More info       https://nodesecurity.io/advisories/722




  Low             Prototype pollution

  Package         merge

  Dependency of   jest [dev]

  Path            jest > jest-cli > jest-runner > jest-runtime >
                  jest-haste-map > sane > watch > exec-sh > merge

  More info       https://nodesecurity.io/advisories/722



# Run  npm update merge --depth 6  to resolve 1 vulnerability

  Low             Prototype pollution

  Package         merge

  Dependency of   jest-cli [dev]

  Path            jest-cli > jest-haste-map > sane > watch > exec-sh > merge

  More info       https://nodesecurity.io/advisories/722



found 16 low severity vulnerabilities in 48756 scanned packages
  run `npm audit fix` to fix 16 of them.

Before changing anything related to the listed issues, did run npm test for running Jest test suite.

Noticed that the test suite would fail to run (on the Windows machine under PowerShell terminal environment).
(Replaced full directory path with --- on the following terminal log, to clear unrelated details from the output.)

> npm test

> [email protected] pretest  --- d2s\cspell-dicts\generator-cspell-dicts
> eslint . --fix

(node:9472) [ESLINT_LEGACY_OBJECT_REST_SPREAD] DeprecationWarning: The 'parserOptions.ecmaFeatures.experimentalObjectRestSpread' option is deprecated. Use 'parserOptions.ecmaVersion' instead. (found in "xo")

> [email protected] test  --- d2s\cspell-dicts\generator-cspell-dicts
> jest

  console.error node_modules/jest-jasmine2/build/jasmine/Env.js:157
    Unhandled error

  console.error node_modules/jest-jasmine2/build/jasmine/Env.js:158
    Error [ERR_UNHANDLED_ERROR]: Unhandled error. (Error: Did not provide required argument name!)
        at Object.<anonymous>.module.exports.emit (events.js:171:17)
        at _arguments.forEach ( --- \d2s\cspell-dicts\generator-cspell-dicts\node_modules\yeoman-generator\lib\index.js:351:21)
        at Array.forEach (<anonymous>)
        at Object.<anonymous>.module.exports.checkRequiredArgs ( --- d2s\cspell-dicts\generator-cspell-dicts\node_modules\yeoman-generator\lib\index.js:347:21)
        at Object.<anonymous>.module.exports.parseOptions ( --- d2s\cspell-dicts\generator-cspell-dicts\node_modules\yeoman-generator\lib\index.js:332:10)
        at Object.<anonymous>.module.exports.argument ( --- d2s\cspell-dicts\generator-cspell-dicts\node_modules\yeoman-generator\lib\index.js:255:10)
        at new Object.<anonymous>.module.exports ( --- d2s\cspell-dicts\generator-cspell-dicts\generators\app\index.js:14:10)
        at Environment.instantiate ( --- d2s\cspell-dicts\generator-cspell-dicts\node_modules\yeoman-environment\lib\environment.js:407:12)
        at Environment.create ( --- d2s\cspell-dicts\generator-cspell-dicts\node_modules\yeoman-environment\lib\environment.js:385:17)
        at RunContext.Object.<anonymous>.RunContext._run ( --- d2s\cspell-dicts\generator-cspell-dicts\node_modules\yeoman-test\lib\run-context.js:90:29)

 FAIL  __tests__/app.js (26.345s)
  generator-cspell-dicts:app
    × creates files (20ms)

  ● generator-cspell-dicts:app › creates files

    Timeout - Async callback was not invoked within the 5000ms timeout specified by jest.setTimeout.

      at mapper (node_modules/jest-jasmine2/build/queue_runner.js:41:52)

  ● generator-cspell-dicts:app › creates files

    assert.equal(received, expected) or assert(received)

    Expected value to be equal to:
      true
    Received:
      false

    Message:
      dummyfile.txt, no such file or directory

      11 |
      12 |   it('creates files', () => {
    > 13 |     assert.file([
         |            ^
      14 |       'dummyfile.txt'
      15 |     ]);
      16 |   });

      at convertArgs.forEach.file (node_modules/yeoman-assert/index.js:56:12)
          at Array.forEach (<anonymous>)
      at Function.Object.<anonymous>.assert.file (node_modules/yeoman-assert/index.js:54:26)
      at Object.it (__tests__/app.js:13:12)

Test Suites: 1 failed, 1 total
Tests:       1 failed, 1 total
Snapshots:   0 total
Time:        28.139s
Ran all test suites.
npm ERR! Test failed.  See above for more details

Not sure how to fix that.
It might be that the bug is already fixed in the latest Jest version.

Updated to the more recent Jest version with: npm install --save-dev [email protected]

After update, did re-run the npm audit again to find out if there are any known security issues with the used npm packages. npm audit "found 0 vulnerabilities in 41220 scanned packages."

After that, tried to run npm link again to see if it would work now.
It completed without any issues.

So it seems that the core issues were the outdated Jest version,
and lack of migration from nsp check to npm audit.

After fixing those problems, it is finally possible to install the generator.

After that, tried re-running the npm test to see if the test results would have changed.
Still the same as before, but at least the main issues are now fixed.

Dictionary request: F#

Would it be possible to add a dictionary for F#? And to enable it (and probably dotnet) for F#-files by default? It would be greatly appreciated.

add many words, such as "deobfuscate", "serializable", "repurpose", etc. to the dictionary.

Been using cSpell for a while, and I've got a bunch of words in my user dictionary.
If you tell me the process, I can make a pull request with these, and some of the other words people have suggested in the issues. I'm not sure I agree with #181 for "ethereum", or "mempool", but "cryptocurrency" should definitely be a word.

arborescence
dataset
datasets
deobfuscate
deobfuscated
deobfuscates
deobfuscation
deobfuscator
deobfuscators
deregister
deregistered
queryable
recurse
recursed
recurses
recursing
reddit
reddit's
repurpose
repurposed
repurposes
repurposing
serializable
subreddit
subreddit's
unregister

Package Generator: Fix and Verify the process to create a new dictionary

Issues:

Package Generation:

The build process must depend upon the type of resulting dictionary.

  • If it is a *.txt.gz file, then we want to build it each time.
  • If it is a *.trie.gz file, then we only want to build it by hand because it can take a very long time.
  • test script depends upon the type of source, for a hunspell file, we need to use the hunspell reader, for a text file, a standard head will work.
    Example Test Text
    "test": "head -n 100 \"go.txt\" | cspell -v -c ./cspell-ext.json --local=* --languageId=go stdin",
    
    Example Test Hunspell
    "test": "hunspell-reader words -n 1000 \"French.dic\" | cspell -v -c ./cspell-ext.json --local=fr --languageId=* stdin",
    

Building / testing:

  • The build process is broken for running in the package directory npm run build will fail from the package directory if cspell, cspell-tools, and hunspell-reader are not installed globally.

Documentation

  • Documentation needs to be updated to reflect the new process.

Making it easier to add words to dictionaries

Problem - It is too hard to add words to dictionaries

The number of requests to add words to dictionaries has been growing. The existing pull-request method is a barrier to entry for the casual user. It is a bit too much to ask them to fork the repository just to add a word to a dictionary.

Desired Outcome

A simple way for users to suggest words to be added combined with a simple way to accept the words.

Possible Approaches

  • Issue Template and GitHub Action
    Use an Issue Template to help with creating suggestions and have a github action create an automatic pull request.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.