niobures's picture
XPF
4a08ba7 verified
# Mapudungun Rule Set
# Written by: Emily
# Last Updated: 2020-04-15
type,sfrom,sto,weight,precede,follow,comment
# Class Rules
class,passthrough,[aefiklmnopstuw],,,,
class,gem,(p|t̪|t|k|m|n̪|n|ɲ|ŋ|tʃ|ʈʂ|f|θ|s|ʃ|ʐ|ɣ|l̪|l|j|ʎ|w),,,,
# Individual Letters
sub,d,θ,2,,,
sub,g,ŋ,2,,,
sub,ï,ɘ,2,,,
sub,ḻ,l̪,2,,,
sub,ṉ,n̪,2,,,
sub,ñ,ɲ,2,,,
sub,r,ʐ,2,,,
sub,ṯ,t̪,2,,,
sub,ü,ɘ,2,,,
sub,y,j,2,,,
sub,({passthrough}),\1,2,,,
# Digraphs
sub,c,tʃ,3,,h,
sub,h,,3,c,,"clean-up",
sub,t,ʈʂ,3,,r,
sub,r,,3,t,,"clean-up",
sub,s,ʃ,3,,h,
sub,h,,3,s,,"clean-up",
sub,n,ŋ,3,,g,
sub,g,,3,n,,"clean-up",
sub,l,ʎ,3,,l,
sub,l,,3,l,,"clean-up",
# Orthographic Variation
sub,c,tʃ,2,,,
sub,x,ʈʂ,2,,,
sub,t,ʈʂ,3,,x,
sub,x,,3,t,,"clean-up",
sub,z,θ,2,,,
sub,h,n̪,2,,,
sub,n,n̪,3,,h,
sub,h,,3,n,,"clean-up",
sub,q,ɣ,2,,,
sub,b,l̪,2,,,
sub,l,l̪,3,,h,
sub,h,,3,l,,"clean-up",
sub,j,ʎ,2,,,
sub,v,ɘ,2,,,
# Geminates
ipasub,\b({gem}) \1\b,\1 ː,2,,,