From Fedora Project Wiki

Description

This test case ensures that both enchant and enchant2 spell checking libraries are functioning correctly on Fedora.

Setup

  1. Ensure that you have both enchant and enchant2 installed. If not, install them: sudo dnf install enchant enchant2
  2. 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

  1. Open a terminal.
  2. Use enchant-lsmod-2 to list the available dictionaries.
  3. Create a text file, for example "test.txt", and add a few lines with intentionally misspelled words.
  4. Check spelling in the file using enchant-2 test.txt. Take note of the words it flags as misspelled.
  5. Now, use enchant-lsmod (for the older enchant version) to list the available dictionaries.
  6. Similarly, check spelling in the file using enchant test.txt. Compare the results with the ones from enchant2.

Expected Results

  1. Both commands enchant-lsmod-2 and enchant-lsmod should list dictionaries, and they might vary based on the enchant version.
  2. The commands enchant-2 test.txt and enchant 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.