Tag: stem list - adamb924/mortal-engine GitHub Wiki

The <stem-list> tag points to an XML tag list, contained in another file. (The format for that file is described here.)

The fragment below is from examples/01-Filtered.xml

<stem-list label="Stem">
    <filename>01-stems.xml</filename>
    <matching-tag>noun</matching-tag>
</stem-list>

The <filename> tag indicates the location of the stems file.

The <matching-tag> allows you to select stems from the stems file by matching a tag. In this example the instruction is to include stems that match the noun tag. You can include multiple <matching-tag> tags if you wish to make more specific filters.

For larger projects, it's probably easier in the long run to use <sqlite-stem-list> instead of this tag.

Advanced

The <stem-list> tag can also contain the <create-allomorphs> tag, which will generate stem allomorphs automatically for you. For instance, if you have word-final devoicing, you could put the voiced versions in your stem list, and then automatically generate devoiced allomorphs using <create-allomorphs>.

⚠️ **GitHub.com Fallback** ⚠️