Greetings Apertiumers!

I have just created a new program in lttoolbox which generates paradigms.
It is called lt-paradigm and it is similar to lt-expand and hfst-expand
except that it takes a pattern as input and only lists paths matching that
pattern.

For example, here is it generating all forms of the noun σαρξ in Greek:

echo 'σαρξ<n><*>' | lt-paradigm grc.autogen.bin
σαρξ<n><f><pl><dat>:σαρξί
σαρξ<n><f><pl><dat>:σαρξίν
σαρξ<n><f><pl><dat>:σαρξὶ
σαρξ<n><f><pl><dat>:σαρξὶν
σαρξ<n><f><sg><gen>:σαρκός
σαρξ<n><f><sg><dat>:σαρκί
σαρξ<n><f><sg><dat>:σαρκὶ
σαρξ<n><f><sg><gen>:σαρκὸς
σαρξ<n><f><pl><gen>:σαρκῶν
σαρξ<n><f><pl><dat>:σαρκσί
σαρξ<n><f><pl><dat>:σαρκσίν
σαρξ<n><f><pl><dat>:σαρκσὶ
σαρξ<n><f><pl><dat>:σαρκσὶν
σαρξ<n><f><sg><nom>:σάρξ
σαρξ<n><f><sg><voc>:σάρξ
σαρξ<n><f><sg><acc>:σάρκα
σαρξ<n><f><sg><nom>:σάρκς
σαρξ<n><f><sg><voc>:σάρκς
σαρξ<n><f><pl><acc>:σάρκας
σαρξ<n><f><pl><voc>:σάρκες
σαρξ<n><f><pl><nom>:σάρκες
σαρξ<n><f><sg><nom>:σὰρκς
σαρξ<n><f><sg><voc>:σὰρκς
σαρξ<n><f><sg><nom>:σὰρξ
σαρξ<n><f><sg><voc>:σὰρξ

In the input patterns, <*> matches any tag and * matches any letter.

I propose adding this to monolingual modes like so:

  <mode name="grc-paradigm" install="yes">
    <pipeline>
      <program name="lt-paradigm">
        <file name="grc.autogen.bin"/>
      </program>
    </pipeline>
  </mode>

In which case the above command becomes
echo 'σαρξ<n><*>' | apertium -f none -d . grc-paradigm

Bug reports, feature requests, and maybe even bikeshedding are welcome as
usual.

Daniel
_______________________________________________
Apertium-stuff mailing list
Apertium-stuff@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to