Skip to content

Commit

Permalink
feat: reduce the size of the python dictionary (#3259)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S committed Jun 6, 2024
1 parent 4e49a5d commit a9c1302
Show file tree
Hide file tree
Showing 5 changed files with 8,713 additions and 10 deletions.
4 changes: 2 additions & 2 deletions dictionaries/python/cspell-ext.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
"dictionaryDefinitions": [
{
"name": "python",
"path": "./python.txt.gz",
"path": "./dict/python.txt",
"description": "Python Dictionary"
},
{
"name": "python-common",
"path": "./python-common.txt.gz",
"path": "./dict/python-common.txt",
"description": "Python Common Terms Dictionary"
}
],
Expand Down
38 changes: 32 additions & 6 deletions dictionaries/python/cspell-tools.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,49 @@

targets:
- name: python
# "build-python": "cspell-tools-cli compile \"src/python/*.txt\" \"src/additional_words.txt\" --split --keep-raw-case --merge python -o .",
sources:
- filename: src/python/python-lib.txt
allowedSplitWords:
- ../en_US/en_US.trie
- ../software-terms/dict/softwareTerms.txt
- src/additional_words.txt
- src/common_packages.txt
- src/common/extra.txt
- src/python/python-lib.txt
- src/python/python.txt
split: true
- filename: src/python/python.txt
allowedSplitWords:
- ../en_US/en_US.trie
- ../software-terms/dict/softwareTerms.txt
- src/additional_words.txt
- src/common_packages.txt
- src/common/extra.txt
- src/python/python-lib.txt
- src/python/python.txt
split: true
- src/additional_words.txt
- src/common_packages.txt
- filename: src/common_packages.txt
split: true
allowedSplitWords:
- ../en_US/en_US.trie
- ../software-terms/dict/softwareTerms.txt
- src/additional_words.txt
- src/common_packages.txt
- src/common/extra.txt
- src/python/python-lib.txt
- src/python/python.txt
- src/data_science.txt
format: plaintext
targetDirectory: '.'
compress: true
targetDirectory: './dict'
compress: false
sort: true

- name: python-common
# "build-common": "cspell-tools-cli compile \"src/common/*.txt\" --keep-raw-case --merge python-common -o .",
sources:
- src/common/extra.txt
targetDirectory: .
targetDirectory: ./dict
format: plaintext
compress: true
compress: false
sort: true
Loading

0 comments on commit a9c1302

Please sign in to comment.