niobures's picture
XPF
4a08ba7 verified
# Spanish Rule Set
# Written by Abi Creighton
# Last Updated: 2020-03-09
type,sfrom,sto,weight,precede,follow,comment
# Class Rules
class,passthrough,[abefiklmnopsuw],,,,
class,front,[eiéí],,,,
class,punct,[ꞌ'ˈ‘’-],,,,
# Individual Letters
sub,á,a,1,,,"accents mark stress (not accounted for in this project)",
sub,c,k,1,,,
sub,c,θ,2,,{front},
sub,d,d̪,1,,,
sub,é,e,1,,,"accents mark stress (not accounted for in this project)",
sub,g,ɡ,1,,,
sub,g,x,2,,{front},
sub,h,,1,,,
sub,í,i,1,,,
sub,j,x,1,,,
sub,ñ,ɲ,1,,,
sub,ó,o,1,,,
sub,r,r,2,^,,
sub,r,ɾ,1,,,
sub,t,t̪,1,,,
sub,ú,u,1,,,"accents mark stress (not accounted for in this project)",
sub,ü,w,1,g,,"<gü> sequences indicate a /gw/ rather than /ɡ/",
sub,v,b,1,,,
sub,x,k s,1,,,
sub,x,s,2,^,,
sub,y,ʝ,1,,,
sub,ý,i,1,,,"<ý> is only preserved in some proper names, but refers to the vowel /i/ rather than the fricative",
sub,z,θ,1,,,
sub,({passthrough}),\1,0.1,,,
# Digraphs
sub,c,tʃ,3,,h,
sub,h,,3,c,,"clean-up",
sub,l,ʎ,3,,l,
sub,l,,3,l,,"clean-up",
sub,r,r,3,,r,
sub,r,,3,r,,"clean-up",
sub,g,ɡ,3,,u{front},
sub,u,,3,g,{front},"clean-up",
sub,q,k,3,,u{front},
sub,u,,3,q,{front},"clean-up",
# Word rules: some words preserve the older orthography where <x> corresponds to /x/ rather than /ks/
word,México,m e x i k o,,,,
word,Mexico,m e x i k o,,,,
word,mexicano,m e x i k a n o,,,,
word,mexicanos,m e x i k a n o s,,,,
word,mexicana,m e x i k a n a,,,,
word,mexicanas,m e x i k a n a s,,,,
word,Xavier,x a b i e ɾ,,,,
word,Oaxaca,o a x a k a,,,,
word,xiote,x i o t̪ e,,,,
word,Texas,t̪ e x a s,,,,
word,Axarquía,a x a ɾ k i a,,,,
word,Ximena,x i m e n a,,,,
word,Ximénez,x i m e n e θ,,,,
word,Mexía,m e x i a,,,,
# Misc. Rules
sub,{punct},,2,,,"hyphens and apostrophes have no phonemic value",