XPF / Data /ghs_GuhuSamane /ghs.rules
niobures's picture
XPF
4a08ba7 verified
# Guhu-Samane Rule Set
# Written by: Emily
# Last Updated: 2020-01-31
type,sfrom,sto,weight,precede,follow,comment
# Class Rules
class,passthrough,[abehikmnopstu],,,,
class,vowels,[aeiou],,,,
class,a-dip,[eiou],,,,
class,e-dip,[iou],,,,
class,o-dip,[eiu],,,,
# Individual Letters
sub,g,ɡ,2,,,
sub,q,ʔ,2,,,
sub,r,ɽ,2,,,
sub,({passthrough}),\1,2,,,
# Digraphs
sub,d,dz,3,,z,
sub,z,,3,d,,"clean-up",
sub,k,kx,3,,h,
sub,h,,3,k,,"clean-up",
sub,n,ŋ,3,,g,
sub,g,,3,n,,"clean-up",
sub,t,t̪,3,,t,
sub,t,,3,t,,"clean-up",
# Vowel Length
ipasub,\b({vowels}) \1\b,\1 ː,2,,,
# Diphthongs
sub,a,ae,4,,e,
sub,a,ai,4,,i,
sub,a,ao,4,,o,
sub,a,au,4,,u,
sub,{a-dip},,4,a,,"clean-up",
sub,e,ei,4,,i,
sub,e,eo,4,,o,
sub,e,eu,4,,u,
sub,{e-dip},,4,e,,"clean-up",
sub,i,iu,4,,u,
sub,u,,4,i,,"clean-up",
sub,o,oe,4,,e,
sub,o,oi,4,,i,
sub,o,ou,4,,u,
sub,{o-dip},,4,o,,"clean-up",
sub,u,ui,4,,i,
sub,i,,4,u,,"clean-up",
# Misc. Rules
sub,-,,2,,,