Translating Lexicanter to tadpole
This chapter is based on the Lexicanter built-in documentation and shows how to translate various Lexicanter sound changer constructs into tadpole. Lexicanter constructs are shown on the left, and the corresponding tadpole construct on the right. Titles on each column show the corresponding Lexicanter and tadpole terminology if there is a difference.
Note that the semantics of Lexicanter’s sound changer operate on strings and do not feature support for symbol segmentation. To achieve the same results, it is usually best to use string matchers and enable the class_as_string configuration option:
config class_as_string = true;However, this is only recommended when translating rules with the aim of preserving the exact rule structure. For long-term usage, it is recommended to perform a full conversion using proper segmentation and symbol matchers.
Lexicanter rules are not named, but tadpole rules require a name.
Note that Lexicanter also supports an alternative frontend to tadpole which is compatible with the legacy syntax.
| Rules | |
|---|---|
| |
| Contexts | Environments |
| |
| Anonymous Categories | Alternatives |
| |
| Named Categories | Classes |
| |
| Category Conversion | Index Bindings |
| |
| |
| Word Boundaries | |
| |
| Exceptions | |
| |
| Wildcards | |
| |
| Repetition | |
| |
| Optional Members | Optional Elements |
| |
| Reduplication | Content Bindings |
| |
| Prefixes & Suffixes | |
| |