Skip to content

Commit

Permalink
spanish final
Browse files Browse the repository at this point in the history
  • Loading branch information
neurlang authored and Your Name committed Oct 8, 2024
1 parent 8be10cb commit a1e1fd3
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 188 deletions.
2 changes: 1 addition & 1 deletion dicts/dicts.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func GetDict(lang, filename string) ([]byte, error) {
case "Czech":
return czech.Language.ReadFile(lzw(filename))
case "Spanish":
return spanish.Language.ReadFile(filename)
return spanish.Language.ReadFile(lzw(filename))
case "Slovak":
return slovak.Language.ReadFile(lzw(filename))
case "Arabic":
Expand Down
2 changes: 1 addition & 1 deletion dicts/spanish/language.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ package spanish

import "embed"

//go:embed *.tsv language.json weights0.json.gz
//go:embed *.tsv language.json weights1.json.lzw
var Language embed.FS
230 changes: 44 additions & 186 deletions dicts/spanish/language.json
Original file line number Diff line number Diff line change
@@ -1,187 +1,45 @@
{
"Map": {"a":["a"],
"ac":["ak",""],
"ach":["atʃ"],
"acua":["akwa"],
"acuá":["akwa"],
"ah":["a"],
"ak":["ak"],
"aq":["ak"],
"aqu":["ak"],
"aqua":["akwa"],
"ar":[""],
"as":["as"],
"at":["at"],
"az":[""],
"b":["β","b"],
"c":["k","θ"],
"ch":[""],
"ck":["k"],
"d":["d","ð"],
"do":["ðo","do"],
"dó":["ðo","do"],
"e":["e","ɛ"],
"ea":["ea"],
"ec":["ek","","et"],
"ed":["","ed"],
"ee":["ee",""],
"ef":["ef"],
"efr":["efɾ"],
"eg":["","ex","eg"],
"egu":["","eɣu","eɣw"],
"egú":["eɣu"],
"eh":["e"],
"ehe":["ee"],
"ehi":["ei"],
"ehis":["eis"],
"ehí":["ei"],
"ei":[""],
"eis":["eɪs"],
"ej":["ex"],
"equ":["ek"],
"er":[""],
"es":["es"],
"et":["et"],
"eu":[""],
"ex":["eks","ek"],
"ey":[""],
"ez":[""],
"eá":["ea"],
"eé":["ee"],
"eí":["ei"],
"eís":["eis"],
"f":["f"],
"fu":["fu","fw"],
"g":["ɣ","g","x"],
"gr":["ɣɾ",""],
"gu":["ɣw","gw","ɣu","gu"],
"gue":["ɣe","ge"],
"gui":["gi","ɣi","ɣj","gj"],
"gur":["ɣuɾ","guɾ"],
"gué":["ɣe","ge"],
"guí":["gi","ɣi"],
"gú":["ɣu","gu"],
"gü":["ɣu","gu"],
"ha":["a","ʃa"],
"hac":["","ak"],
"har":["ʃaɾ",""],
"has":["ʃas","as"],
"haz":[""],
"he":["e"],
"her":["","ʃeɾ"],
"hes":["es","ʃes"],
"hi":["i","ʃi"],
"ho":["o","ʃo"],
"hon":["on","ʃon"],
"hu":["u","ʃu","w","ʃw"],
"há":["ʃa","a"],
"hár":["ʃaɾ"],
"hás":["ʃas"],
"hé":["ʃe","e"],
"héis":["ʃeis"],
"hí":["i","ʃi"],
"hó":["ʃo","o"],
"hón":["ʃon","on"],
"i":["i","j","ɪ"],
"ic":["ik","","ɪk"],
"ich":["itʃ"],
"ih":["i"],
"in":["in","","ɪn","ɪŋ"],
"iqu":["ik"],
"iz":["","ɪθ"],
"j":["x"],
"ja":["xa"],
"já":["xa"],
{"Map":{"":[],
"a":["a","ˈa","ˌa",""],
"b":["β","b","βˈ","βˌ","",""],
"c":["k","θ","","θˈ","","θˌ"],
"ch":["","tʃˈ","ɾˌtʃ","ɾtʃˈ","ɾˈtʃ"],
"d":["","d","ð","ðˈ","","ðˌ"],
"e":["e","ˌe","ˈe","ɛ","","ˈɛ","k"],
"eh":["ɾˌe","e","ɾeˈ","ˌe"],
"f":["f","",""],
"g":["ɣ","g","x","ɣˈ","","ɣˌ","","ˈe","",""],
"h":["ˌe"],
"hach":["ˌatʃ","atʃˈ"],
"hay":[],
"hech":["etʃˈ","etʃ","ˈetʃ","ˌetʃ"],
"hoy":["ojjˈ","ojj"],
"hu":["","u","w","ˈu","ˌu",""],
"i":["i","ɪ","ˌi","","j","ˈi","","","ɾiˌ"],
"j":["x","",""],
"k":["k"],
"l":["l"],
"ll":["ʎ"],
"m":["m"],
"mb":["mb"],
"mi":["mi","mj"],
"my":["mi"],
"mí":["mi"],
"n":["n","ŋ","ɲ"],
"nd":["nd"],
"nf":["mf"],
"o":["o"],
"oh":["o"],
"om":["om"],
"on":["on","om","","o"],
"p":["p",""],
"pl":["pl"],
"po":["po"],
"pr":[""],
"pó":["po"],
"qu":["k"],
"r":["ɾ","ɾɾ","r"],
"rr":["ɾɾ"],
"s":["s"],
"sec":["sek"],
"sequ":["sek"],
"sh":["ʃ"],
"she":["ʃe"],
"st":["st"],
"t":["t"],
"ti":["ti","tj"],
"ty":["ti"],
"tí":["ti"],
"u":["u","w","ʊ"],
"uch":["utʃ","ʊtʃ"],
"ud":["","ʊð","ud"],
"ues":["wes","ues"],
"uh":["u"],
"ui":["wi","ui"],
"uin":["uin"],
"ués":["wes"],
"uí":["ui","wi"],
"v":["β","b"],
"w":["w"],
"x":["ks"],
"y":["jj","ʝ","i"],
"yac":["jjaθ",""],
"yaz":["jjaθ"],
"z":["θ"],
"á":["a"],
"ác":["ak"],
"áqu":["ak"],
"ár":[""],
"ás":["as"],
"át":["at"],
"áz":[""],
"é":["e"],
"éc":["ek"],
"éd":[""],
"éf":["ef"],
"éi":["ei"],
"éis":["eis"],
"éj":["ex"],
"éjat":["exat"],
"ér":[""],
"és":["es"],
"ét":["et"],
"í":["i"],
"íc":["ik"],
"ín":["in"],
"íqu":["ik"],
"íz":[""],
"ñ":["ɲ"],
"ó":["o"],
"óm":["om"],
"ón":["on"],
"ú":["u"],
"úd":["","ud"],
"úes":["ues"],
"ü":["u"]}


,
"SrcMulti": [],
"DstMulti": [],
"SrcMultiSuffix": [],
"DstMultiSuffix": ["ː"],
"PrePhonWordSteps": [
{"Trim": ".,"},
{"ToLower": true}
]
}

"l":["l","",""],
"ll":["ʎ","ʎˈ","ʎˌ"],
"m":["m","",""],
"n":["n","m","","ŋ",""],
"ny":["ɲ"],
"o":["o","ˌo","ˈo","","ɾoˈ","","k"],
"p":["p","","",""],
"qu":["k","",""],
"r":["ɾ","ɾˌ","ɾˈ","r",""],
"s":["s","",""],
"t":["t","",""],
"u":["u","ˌu","ˈu","w","ʊ","","","","g","ɾuˌ",""],
"v":["β","b","","βˈ","βˌ"],
"w":["","w"],
"x":["ks","","s"],
"y":["jjˈ","jj","ʝ","ɾˈjj","ɾjjˈ","i","ɾˌjj","ɪ"],
"z":["θ","θˈ","θˌ"],
"á":["ˈa","a"],
"é":["ˈe","e"],
"í":["ˈi","i"],
"ñ":["ɲ","ɲˈ"],
"ó":["ˈo","o"],
"ú":["ˈu","u"],
"ü":["","ˌu","ˈu","u"]},"SrcMulti":null,"DstMulti":null,"SrcMultiSuffix":null,"DstMultiSuffix":["ː"],
"DstMultiPrefix":["ˈ","'","ˌ"],
"DropLast":null,"SplitBefore":null,"SplitAfter":null,"PrePhonWordSteps":[{"Trim":".,"},{"ToLower":true}]}
Binary file removed dicts/spanish/weights0.json.gz
Binary file not shown.
Binary file added dicts/spanish/weights1.json.lzw
Binary file not shown.

0 comments on commit a1e1fd3

Please sign in to comment.