Description
Apply sound changes to words.
Description
Example usage:
{-# LANGUAGE QuasiQuotes #-}
import Language.Change (Change, applyChanges)
import Language.Change.Quote
setV = "aeiou"
changes :: [Change Char]
changes = [chs|
* { k > tʃ; g > dʒ } / _i
* i > e / _i
u > o / _u
* { p > b; t > d } / V_{Vlr}
* a > e / _V!*i
|]
results = map (applyChanges changes) [ "kiis", "kapir", "atri" ]
-- [ "tʃeis", "kebir", "edri" ]
See the module documentation for more information.
README.md