wushuaibuaa / vsautocomplete-en-en

Autocomplete English word when typing.
GNU General Public License v3.0
24 stars 7 forks source link

Ways to modify the wordlist #4

Open lamyergeier opened 5 years ago

lamyergeier commented 5 years ago

Thanks to the awesome extension. No offence to fellow Mandarin users, but I don't understand it and would like to remove all Mandarin characters from the wordlist. COuld you please tell me how could I do it in my fork of this project?

psyguy commented 5 years ago

@anishmittal2020 for a quick fix you can change /wushuaibuaa.autocomplete-english-word-0.1.7/hint_data/words.json file (see here) and remove the non-ASCII characters. For instance with use [^\x00-\x7F] regular expression (see here) but you still need to remove remaining punctuation marks as well. Also, this removes some of phonetic characters of the pronunciations.

stevenlis commented 5 years ago

I eventually moved on to this one https://marketplace.visualstudio.com/items?itemName=yzhang.dictionary-completion