A long introduction to transfer rules
Revision as of 15:58, 30 September 2012 by Francis Tyers (talk | contribs)
Writing transfer rules seems to be tricky. People generally understand the basic concepts, but they struggle with the formalism. We think the formalism isn't that bad. And compared to many other formalisms,[1] it's fairly straightforward.
Some formalities
Before starting, it is important to give some idea of what we can't do, before explaining what we can. If you come at rule-learning expecting something else, then it's likely to be confusing.
- There are no recursive rules. Rules match fixed-length patterns. There is no optionality at the level of words. There is no way of saying one-or-more, it's just one.
- Apertium's rules are very tied to the Apertium stream format. If you don't understand the stream format, you it will be a lot more difficult to understand the rules.
Lexical transfer and structural transfer
Apertium 1
Otisla si tiho i bez pozdrava
Lexical transfer
Apertium 3
Resorni je ministar navlačio ljude, kaže sejte biljku zelenu i čudo će da bude
Lexical transfer
Notes
- ↑ e.g. Matxin, OpenLogos, ...