Se minha cópia do seu projeto FLEx ainda estiver precisa, você tem 13 afixos que podem ir para o slot genitivo e 1 que pode ir para o slot associativo.
O método de força bruta seria fazer a primeira parte da sua declaração and verificar se o afixo associativo está presente, e a segunda parte da sua declaração and seria uma longa declaração or que verificaria a igualdade com cada um dos 13 afixos.
Uma maneira menos longa de fazer a segunda parte seria verificar se o afixo termina com POSS1 ou POSS2 ou POSS3. Poderia parecer assim:
Observe que você não pode usar uma literal tag com a declaração ends with ; você deve usar literal string e terminá-la com um >, que é o marcador de fim de uma tag.
Uma abordagem diferente seria fazer toda a enumeração na definição de categoria. Poderia parecer assim:
Claro, esta é apenas uma lista parcial e você pode precisar adicionar à lista para cada uma das suas categorias de substantivos. na, ni, etc.
A vantagem disso é que você faz toda a enumeração na categoria e tem uma regra usando essa categoria onde você já sabe que todas as condições foram atendidas e pode fazer as alterações necessárias.
Ficaria curioso para saber o que você acaba escolhendo fazer.
If my copy of your FLEx project is still accurate you have 13 affixes that could go in the genitive slot and 1 that can go in the associative slot.
The brute force method would be to have the first part of your and statement check if the 1 associative affix is present, the second part of your and statement would be a long or statement that would check equality with each of the 13 affixes.
A less long way to do the second part would be to check if the affix ends with POSS1 or POSS2 or POSS3. It might look like this:
Note that you can't use a literal tag with the ends with statement you have to use literal string and end it with a > which is the end marker for a tag.
A different approach would be to do all the enumerating in category definition. It might look like this:
Of course, this is just a partial list and you may have to add to the list for each of your noun categories. na, ni, etc.
The advantage of this, is you do all the enumerating in the category and have a rule using that category where you already know all the conditions have been met and you can do the changes needed.
I'd be curious to know what you end up choosing to do.
Tradução automática de English Mostrar original