How can I add a rule with a bigger complexity in annotations.json? #2175
-
|
I'm implementing some stuff for the Portuguese language. One of the affixes (plural) depends on another property I created (stress), so that only words that have the stress in the last syllable are going to be expanded. Is there any way to perform this check in the annotations.json, or would I have to create a new rule file for that? Further, if a new file is needed, would it be interesting to expand the functionalities of the annotations.json so that it has this check included? Or is that a bad idea? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
You'd probably want to expand the functionalities of I would tend to want to keep it general so that one set of code should be able to handle the |
Beta Was this translation helpful? Give feedback.
You'd probably want to expand the functionalities of
annotations.json(inattribute_list.rs,expansion.rsetc.) to handle more things. This has already happened at least a couple of times.I would tend to want to keep it general so that one set of code should be able to handle the
annotations.jsonfiles of different languages. The other solution would be to split logic per-language along with theannotations.jsonbut I think a versatile set of logic would be better in the long run.