sound-change: Apply sound changes to words

[ language, library, linguistics, mit ] [ Propose Tags ] [ Report a vulnerability ]

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.


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0
Change log CHANGELOG.md
Dependencies base (>=4.9.0.0 && <5), containers (>=0.2.0.0 && <0.8), megaparsec (>=9.0.0 && <10), mtl (>=1.0 && <2.4), parser-combinators (>=0.4.0 && <2), syb (>=0.1.0.0 && <0.8), template-haskell (>=2.5.0.0 && <2.22) [details]
License MIT
Author Owen Bechtel
Maintainer ombspring@gmail.com
Category Language, Linguistics
Home page https://github.com/UnaryPlus/sound-change
Bug tracker https://github.com/UnaryPlus/sound-change/issues
Source repo head: git clone https://github.com/UnaryPlus/sound-change.git
Uploaded by OwenBechtel at 2023-10-14T04:13:23Z
Distributions NixOS:0.1.0.0
Downloads 45 total (4 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2023-10-14 [all 1 reports]

Readme for sound-change-0.1.0.0

[back to package description]

sound-change

A sound change applier written in Haskell.

Documentation is available on Hackage.