sohaibafifi / languagetool

A fork of languagetool to maintain Arabic
https://languagetool.org
GNU Lesser General Public License v2.1
18 stars 1 forks source link

New Rule Replace an inflected one word #65

Closed linuxscout closed 2 years ago

linuxscout commented 2 years ago

The simple replace rule doesn't allow to inflect word, than we should add more entries

for example: to replace the word "أبحاث" by بحوث، we should add all variants of replaced word( الأبحاث، أبحاثهم، بالأبحاث, etc..,

Target: develop a new replacement rule, which allow inflection

linuxscout commented 2 years ago

Implemented:

file: org/languagetool/rules/ar/ArabicInflectedOneWordReplaceRule.java resource text file : org/languagetool/rules/ar/inflected_one_word.txt