As part of trying to figure out the best way of supporting language variants in Parsoid that are more data/table based, @cscott explored the use of Finite State Transducer formalism for this. Specifically, he explored the Foma based tools for this.
This gerrit patch specifies language variant transformations for serbian, kurdish, piglatin. Followup patches tie these transformers with a DOM pass that transforms text nodes in the DOM via these foma-based transformers.
The larger goal is make language variant code more readable and maintainable as well as make it simpler to develop them. Looking at just the foma files, it appears that some of these goals can be met.
This task is to continue the discussion that began on the gerrit patch. I'm going to paste a few comments here that capture the initial discussion there.
Related to: T43716: [EPIC] Support language variant conversion in Parsoid