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

Synthesize inflect Word like another #66

Closed linuxscout closed 2 years ago

linuxscout commented 2 years ago

Need: inflect a lemma like another word token,

Input : lemma; token, postag output: inflected word based on lemma and postag of source word.

process: the lemma borrows affixes and conjugation from source word token.

linuxscout commented 2 years ago

Implemented file: org/languagetool/synthesis/ar/ArabicSynthesizer.java Method:

/ generate a new form according to a specific postag, this form is Attached/ public List inflectLemmaLike(String targetLemma, AnalyzedToken sourcetoken)