Closed ggravlingen closed 1 year ago
You don't need to use Hunspell (it doesn't even need to be installed).
Here's what I get when I use your config:
$ vale -v
vale version v2.21.3
$ cat .vale.ini
StylesPath = styles
[*]
BasedOnStyles = Test, Vale
$ ls fixtures
en_GB.aff en_GB.dic
$ vale --config .vale.ini "This is quite obvisly a teached afair."
stdin.txt
1:15 error Did you really mean 'obvisly'? Vale.Spelling
1:15 error 'obvisly' is misspelled Test.Rule
1:25 error Did you really mean 'teached'? Vale.Spelling
1:25 error 'teached' is misspelled Test.Rule
1:33 error Did you really mean 'afair'? Vale.Spelling
1:33 error 'afair' is misspelled Test.Rule
✖ 6 errors, 0 warnings and 0 suggestions in stdin.
where Test.Rule
is
extends: spelling
message: "'%s' is misspelled"
# Relative to config file
dicpath: ./fixtures/
append: false
level: error
dictionaries:
- en_GB
Could you share the output of running vale --config '/workspaces/python-vale/.vale.ini' ls-config
?
I wasn't precise on Hunspell, I only installed it to make sure the dictionaries were working.
After implementing your exact settings, I finally got it to work and can work from there. Thank you for getting back to me and for helping me out!
Linux 4ceca93ca1ad 5.15.49-linuxkit #1 SMP PREEMPT Tue Sep 13 07:51:32 UTC 2022 aarch64 GNU/Linux
)vale version 2.21.3
Hi,
I'm having a hard time understanding how spell check works with a custom dictionary. Can you please point me in the right direction of what I'm doing wrong here?
This is what I've tried doing so far:
fixtures
folder.My
general/Spelling.yml
looks like so:This is my
.vale.ini
:Running this command and I would have expected at least some errors due to the bastardisation of the English language:
I saw somewhere here that you had used the Hunspell command directly so I tried that as well. This throws some errors as expected.