From Fedora Project Wiki
Description
This test case ensures that both enchant
and enchant2
spell checking libraries are functioning correctly on Fedora.
Setup
- Ensure that you have both
enchant
andenchant2
installed. If not, install them:sudo dnf install enchant enchant2
- For testing purposes, you might want to ensure you have a few dictionaries installed. For instance:
sudo dnf install hunspell-en-US
How to test
- Open a terminal.
- Use
enchant-lsmod-2
to list the available dictionaries. - Create a text file, for example "test.txt", and add a few lines with intentionally misspelled words.
- Check spelling in the file using
enchant-2 test.txt
. Take note of the words it flags as misspelled. - Now, use
enchant-lsmod
(for the older enchant version) to list the available dictionaries. - Similarly, check spelling in the file using
enchant test.txt
. Compare the results with the ones fromenchant2
.
Expected Results
- Both commands
enchant-lsmod-2
andenchant-lsmod
should list dictionaries, and they might vary based on the enchant version. - The commands
enchant-2 test.txt
andenchant test.txt
should flag misspelled words. The results between enchant and enchant2 might differ slightly based on the dictionaries and algorithms, but in general, common misspellings should be caught by both.
Optional
You can further explore the two tools by checking their suggestions for misspelled words and see how they differ between the versions.