Cspell custom dictionary for Pāḷi
The following text file can be used as a custom dictionary for Cspell. Cspell is often used as a spell checker in code editors such as Visual Studio Code.
The custom dictionary is generated using the word lookups from Digital Pali Dictionary (Documentation).
To use the custom dictionary in Visual Studio Code, add the following to your settings.json file:
"cSpell.customDictionaries": { "pali": { "name": "pali", "path": "${workspaceRoot}/pali.txt", "description": "Pali dictionary", "addWords": false }, "custom": true, // Enable the `custom` dictionary}To use this in Zed, create a cspell.json file in the root of your project with the following content:
{ "dictionaries": ["en", "pali"], // Tell CSpell about your dictionary "dictionaryDefinitions": [ { // The name of the dictionary is used to look it up. "name": "pali", // Path to the custom word file. Relative to this `cspell.json` file. "path": "./pali.txt", // Some editor extensions will use `addWords` for adding words to your // personal dictionary. "addWords": false } ]}