@cspell/dict-python
npm i @cspell/dict-python

@cspell/dict-python

Various cspell dictionaries

by streetsidesoftware

3.0.5 (see all)License:MITTypeScript:Not Found
npm i @cspell/dict-python
Readme

cspell-dicts

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

Language Dictionaries

Programming Dictionaries

Specialized Dictionaries

All Dictionaries

packagedictionary IDnamedescription
@cspell/dict-adaadaAda LanguageAda Language Dictionary
@cspell/dict-awsawsAWSAWS dictionary for cspell.
@cspell/dict-bashbashbashBash dictionary for cspell.
@cspell/dict-bg-bgbg-bgBulgarianBulgarian dictionary for cspell.
@cspell/dict-cacaCatalanCatalan dictionary for cspell.
@cspell/dict-city-names-finlandcity-names-finlandCities of FinlandList of cities in Finland.
@cspell/dict-clojureclojureclojureClojure dictionary for cspell.
@cspell/dict-companiescompaniesCompany namesCompany names dictionary for cspell.
@cspell/dict-cppcppC/C++ DictionaryC/C++ Keywords and common library functions.
@cspell/dict-cryptocurrenciescryptocurrenciesCryptocurrenciesCryptocurrencies dictionary for cspell.
@cspell/dict-cs-czcs-czCzechCzech dictionary for cspell.
@cspell/dict-csharpcsharpcsharpC# dictionary for cspell.
@cspell/dict-csscsscssCss dictionary for cspell.
@cspell/dict-da-dkda-dkDanishDanish dictionary for cspell.
@cspell/dict-dartdartdartDart dictionary for cspell.
@cspell/dict-de-dede-deGerman DictionaryGerman (de-DE) Dictionary.
@cspell/dict-djangodjangoDjango KeywordsList of Python Django Framework keywords.
@cspell/dict-dotnetdotnet.Net Dictionary.Net keywords.
@cspell/dict-elelGreekGreek dictionary for cspell.
@cspell/dict-elixirelixirelixirElixir dictionary for cspell.
@cspell/dict-en-gben-gbBritish English DictionaryBritish English Dictionary
@cspell/dict-en-gb-miten-gb-mitBritish English Dictionary LimitedBritish English Dictionary with MIT License
@cspell/dict-en_usen_usAmerican English DictionaryAmerican English Dictionary
@cspell/dict-eoeoEsperantoEsperanto dictionary for cspell.
@cspell/dict-es-eses-esSpanish Dictionary (Spain)Spanish Dictionary (Spain)
@cspell/dict-et-eeet-eeEstonianEstonian dictionary for cspell.
@cspell/dict-fa-irfa-irPersian DictionaryPersian Dictionary
@cspell/dict-filetypesfiletypesfiletypesFiletypes dictionary for cspell.
@cspell/dict-fontsfontsfont namesFont names dictionary for cspell.
@cspell/dict-fr-frfr-frFrench Dictionary (France)French Dictionary (France)
@cspell/dict-fr-reformefr-fr-90Français Réforme 1990Français Réforme 1990 dictionary for cspell.
@cspell/dict-fullstackfullstackFullstackCommon words encountered during fullstack development
@cspell/dict-golanggolangGo LanguageGo Language Dictionary
@cspell/dict-haskellhaskellHaskellHaskell dictionary for cspell.
@cspell/dict-heheHebrew DictionaryHebrew Dictionary
@cspell/dict-hr-hrhr-hrCroatianCroatian dictionary for cspell.
@cspell/dict-htmlhtmlhtmlHtml dictionary for cspell.
@cspell/dict-html-symbol-entitieshtml-symbol-entitiesHTML Symbol EntitiesHTML Symbol Entities Dictionary
@cspell/dict-it-itit-itItalianItalian dictionary for cspell.
@cspell/dict-javajavaJavaJava dictionary for cspell.
@cspell/dict-latexlatexLaTeXLaTeX cspell dictionary
@cspell/dict-lorem-ipsumlorem-ipsumlorem-ipsumLorem-ipsum dictionary for cspell.
@cspell/dict-lt-ltlt-ltLithuanianLithuanian dictionary for cspell.
@cspell/dict-lualualuaLua dictionary for cspell.
@cspell/dict-medicaltermsmedical termsMedical termsMedical Terms Dictionary
@cspell/dict-mnemonicsmnemonicsMnemonicsi86 Mnemonics dictionary for cspell
@cspell/dict-monkeycmonkeycMonkey CMonkey C dictionary for cspell.
@cspell/dict-nb-nonb-noNorwegian BokmålNorwegian Bokmål dictionary for cspell.
@cspell/dict-nl-nlnl-nlDutch (Netherlands) DictionaryDutch (Netherlands) Dictionary
@cspell/dict-nodenodeNode.jsNode.js dictionary for cspell.
@cspell/dict-npmnpmNPMNPM dictionary for cspell.
@cspell/dict-phpphpPHP DictionaryPhp dictionary for cspell.
@cspell/dict-pl_plpl-plPolish DictionaryPolish Dictionary
@cspell/dict-powershellpowershellPowerShell DictionaryPowerShell Keyword Dictionary
@cspell/dict-pt-brpt-brPortuguese (Brazilian) DictionaryPortuguese (Brazilian) Dictionary
@cspell/dict-pt-ptpt-ptPortuguese Dictionary (Portugal)Portuguese Dictionary (Portugal)
@cspell/dict-public-licensespublic-licensesCommon Public LicensesCommon Public Licenses dictionary for cspell.
@cspell/dict-pythonpythonPython DictionaryPython Keyword Dictionary
@cspell/dict-rrRR dictionary for cspell.
@cspell/dict-ru_ruru-ruRussian Dictionary (Combined)Russian Dictionary (Combined)
@cspell/dict-rubyrubyRubyFor ruby and ruby on rails
@cspell/dict-rustrustRust DictionaryRust Keyword Dictionary
@cspell/dict-scalascalaScalaScala dictionary for cspell.
@cspell/dict-scientific-terms-usscientific-terms-usScientific Terms USScientific Terms US dictionary for cspell.
@cspell/dict-software-termssoftwareTerms; networking-termsSoftware TermsSoftware terms dictionary for cspell.
@cspell/dict-svsvSwedish DictionarySwedish Dictionary
@cspell/dict-swiftswiftSwiftSwift dictionary for cspell.
@cspell/dict-tr-trtr-trTurkishTurkish dictionary for cspell.
@cspell/dict-typescripttypescriptTypeScriptTypeScript and JavaScript dictionary for cspell.
@cspell/dict-uk-uauk-uaUkrainian DictionaryUkrainian Dictionary
@cspell/dict-vi-vnvi-vnVietnameseVietnamese dictionary for cspell.
@cspell/dict-vuevueCSpell configuration for VUE files
@cspell/dict-win32win32Win32Win32 dictionary for cspell.

Contributing

Please help correct any mistakes in the dictionaries.

See: Contributing

How to create a new dictionary

Please fork this repository to add new dictionaries.

Install Yarn

Installation | Yarn

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 yarn to make sure everything is installed.

yarn

Run create-dictionary to start the Yeoman script.

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

Yeoman will ask you a series of questions:

FieldDescription
namethis is the dictionary. i.e. en_AU or ruby
friendly namethis is the friendly name, like Australian
descriptionshort description of the dictionary.
source filethis 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.
localthis is the two letter language code with an optional cultural code. a * mean it will match any language. More than one local can be added by separating them with a comma. i.e. en, en_AU.
languageIdthis 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 triefor large source files (> 1MB) or hunspell files, this should be y. n will work for all programming language keyword files.
run buildprepare the word list so it can be used by cspell efficiently. You can always run the build step yourself in the dictionary directory yarn 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> [--local=<locale>] [--language-id=<filetype>] Example: cspell check README.md --local=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>

Downloads/wk

129K

GitHub Stars

118

LAST COMMIT

2mos ago

MAINTAINERS

1

CONTRIBUTORS

101

OPEN ISSUES

29

OPEN PRs

0
VersionTagPublished
3.0.5
latest
2d ago
No alternatives found
No tutorials found
Add a tutorial