Logo Lanfrica

abdelhaqueidali/Amazigh-Spell-Checker

Domaine:

natural language processing

Type de record:

software
Créateur:
abd
Hôte:
Simple Amazigh spell checker # Amazigh Spell Checker (ⴰⵙⵏⵎ ⵏ ⵜⵉⵔⵔⴰ ⵏ ⵜⵎⴰⵣⵉⵖⵜ) This is a simple web-based spell checker for the Amazigh (Tamazight) language, primarily using the Tifinagh script. It highlights potentially misspelled words and suggests corrections based on a provided dictionary. **Live Website:** abdelhaqueidali.github.io ## Features * **Tifinagh Input and Output:** The tool is designed to work with text written in the Tifinagh script. * **Spelling Check:** Identifies words that are not found in the dictionary. * **Suggestions:** Offers similar words from the dictionary as potential corrections. The suggestions consider: * **Levenshtein Distance:** Finds words with a small edit distance (insertions, deletions, substitutions). * **Common Letter Variations:** Handles common variations like ⵣ/ⵥ, ⴷ/ⴹ, ⵜ/ⵟ, ⵔ/ⵕ, ⵙ/ⵚ. * **ⵡ/ⵓ and ⵢ/ⵉ Alternations:** Suggests words starting with ⵡ if a word starting with ⵓ is not found (and vice versa). The same logic applies to ⵢ and ⵉ. * **Consonant Similarity**: Considers words to be similiar if they only vary in vowels. * **Interactive Modal:** Displays suggestions in a modal window, allowing users to: * See a paginated list of suggested words. * Edit the misspelled word directly. * Replace the misspelled word with a suggestion. * Add the word to an in-memory dictionary. * **In-Memory Dictionary:** Allows users to add new words to a dictionary that persists for the current session. This improves the spell checker's accuracy over time within that session. *Note: This dictionary is not permanently stored.* * **Copy, Paste, and Clear Functionality:** Buttons to clear the input textarea, paste text from clipboard, copy result to clipboard, and download the result as a file. * **Responsive Design:** Works well on different screen sizes (desktops, tablets, and mobile phones). ## Project Structure * **`index.html`:** The main HTML file containing the structure, styles, and JavaScrip …