damga 1.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (729) hide show
  1. damga-1.0.0/CHANGELOG.md +218 -0
  2. damga-1.0.0/CONTRIBUTING.md +74 -0
  3. damga-1.0.0/LICENSE +202 -0
  4. damga-1.0.0/MANIFEST.in +10 -0
  5. damga-1.0.0/NOTICE +7 -0
  6. damga-1.0.0/PKG-INFO +490 -0
  7. damga-1.0.0/README.md +450 -0
  8. damga-1.0.0/README.tr.md +446 -0
  9. damga-1.0.0/benchmarks/bench.py +98 -0
  10. damga-1.0.0/benchmarks/latency.py +84 -0
  11. damga-1.0.0/benchmarks/tn_variants.py +177 -0
  12. damga-1.0.0/damga/__init__.py +13 -0
  13. damga-1.0.0/damga/api.py +65 -0
  14. damga-1.0.0/damga/build.py +73 -0
  15. damga-1.0.0/damga/core/__init__.py +10 -0
  16. damga-1.0.0/damga/core/cache.py +57 -0
  17. damga-1.0.0/damga/core/categories.py +12 -0
  18. damga-1.0.0/damga/core/data.py +20 -0
  19. damga-1.0.0/damga/core/engine.py +317 -0
  20. damga-1.0.0/damga/core/readings.py +105 -0
  21. damga-1.0.0/damga/core/rules.py +88 -0
  22. damga-1.0.0/damga/core/tokens.py +21 -0
  23. damga-1.0.0/damga/core/unicode.py +115 -0
  24. damga-1.0.0/damga/core/variants.py +198 -0
  25. damga-1.0.0/damga/de/__init__.py +2 -0
  26. damga-1.0.0/damga/de/itn/__init__.py +0 -0
  27. damga-1.0.0/damga/de/itn/categories.py +1 -0
  28. damga-1.0.0/damga/de/itn/compiled/meta.json +9 -0
  29. damga-1.0.0/damga/de/itn/compiled/read.fst +0 -0
  30. damga-1.0.0/damga/de/itn/compiled/write.fst +0 -0
  31. damga-1.0.0/damga/de/itn/fractions.py +222 -0
  32. damga-1.0.0/damga/de/itn/normalizer.py +183 -0
  33. damga-1.0.0/damga/de/itn/readers/__init__.py +0 -0
  34. damga-1.0.0/damga/de/itn/readers/cardinal.py +69 -0
  35. damga-1.0.0/damga/de/itn/readers/decimal.py +29 -0
  36. damga-1.0.0/damga/de/itn/readers/email_url.py +37 -0
  37. damga-1.0.0/damga/de/itn/readers/lexicon_entry.py +21 -0
  38. damga-1.0.0/damga/de/itn/readers/measure.py +42 -0
  39. damga-1.0.0/damga/de/itn/readers/ordinal.py +50 -0
  40. damga-1.0.0/damga/de/itn/readers/sentence.py +72 -0
  41. damga-1.0.0/damga/de/itn/readers/telephone.py +63 -0
  42. damga-1.0.0/damga/de/itn/readers/time.py +22 -0
  43. damga-1.0.0/damga/de/itn/writers/__init__.py +0 -0
  44. damga-1.0.0/damga/de/itn/writers/sentence.py +21 -0
  45. damga-1.0.0/damga/de/lexicon.py +70 -0
  46. damga-1.0.0/damga/de/numbers.py +127 -0
  47. damga-1.0.0/damga/de/tn/__init__.py +0 -0
  48. damga-1.0.0/damga/de/tn/categories.py +2 -0
  49. damga-1.0.0/damga/de/tn/compiled/meta.json +10 -0
  50. damga-1.0.0/damga/de/tn/compiled/read.fst +0 -0
  51. damga-1.0.0/damga/de/tn/compiled/variants.fst +0 -0
  52. damga-1.0.0/damga/de/tn/compiled/write.fst +0 -0
  53. damga-1.0.0/damga/de/tn/data/acronym_words.tsv +16 -0
  54. damga-1.0.0/damga/de/tn/data/lexicon_entries.tsv +21 -0
  55. damga-1.0.0/damga/de/tn/data/units.tsv +70 -0
  56. damga-1.0.0/damga/de/tn/normalizer.py +137 -0
  57. damga-1.0.0/damga/de/tn/readers/__init__.py +0 -0
  58. damga-1.0.0/damga/de/tn/readers/bank.py +72 -0
  59. damga-1.0.0/damga/de/tn/readers/cardinal.py +50 -0
  60. damga-1.0.0/damga/de/tn/readers/date.py +72 -0
  61. damga-1.0.0/damga/de/tn/readers/decimal.py +42 -0
  62. damga-1.0.0/damga/de/tn/readers/email_url.py +33 -0
  63. damga-1.0.0/damga/de/tn/readers/fraction.py +48 -0
  64. damga-1.0.0/damga/de/tn/readers/lexicon_entry.py +35 -0
  65. damga-1.0.0/damga/de/tn/readers/measure.py +61 -0
  66. damga-1.0.0/damga/de/tn/readers/money.py +60 -0
  67. damga-1.0.0/damga/de/tn/readers/ordinal.py +62 -0
  68. damga-1.0.0/damga/de/tn/readers/range.py +27 -0
  69. damga-1.0.0/damga/de/tn/readers/sentence.py +79 -0
  70. damga-1.0.0/damga/de/tn/readers/telephone.py +74 -0
  71. damga-1.0.0/damga/de/tn/readers/time.py +38 -0
  72. damga-1.0.0/damga/de/tn/variants.py +69 -0
  73. damga-1.0.0/damga/de/tn/writers/__init__.py +0 -0
  74. damga-1.0.0/damga/de/tn/writers/sentence.py +21 -0
  75. damga-1.0.0/damga/en/__init__.py +2 -0
  76. damga-1.0.0/damga/en/itn/__init__.py +0 -0
  77. damga-1.0.0/damga/en/itn/categories.py +2 -0
  78. damga-1.0.0/damga/en/itn/compiled/meta.json +9 -0
  79. damga-1.0.0/damga/en/itn/compiled/read.fst +0 -0
  80. damga-1.0.0/damga/en/itn/compiled/write.fst +0 -0
  81. damga-1.0.0/damga/en/itn/normalizer.py +106 -0
  82. damga-1.0.0/damga/en/itn/readers/__init__.py +0 -0
  83. damga-1.0.0/damga/en/itn/readers/cardinal.py +81 -0
  84. damga-1.0.0/damga/en/itn/readers/date.py +32 -0
  85. damga-1.0.0/damga/en/itn/readers/decimal.py +36 -0
  86. damga-1.0.0/damga/en/itn/readers/email_url.py +54 -0
  87. damga-1.0.0/damga/en/itn/readers/lexicon_entry.py +24 -0
  88. damga-1.0.0/damga/en/itn/readers/money.py +61 -0
  89. damga-1.0.0/damga/en/itn/readers/ordinal.py +28 -0
  90. damga-1.0.0/damga/en/itn/readers/sentence.py +78 -0
  91. damga-1.0.0/damga/en/itn/readers/telephone.py +124 -0
  92. damga-1.0.0/damga/en/itn/readers/time.py +70 -0
  93. damga-1.0.0/damga/en/itn/units.py +96 -0
  94. damga-1.0.0/damga/en/itn/writers/__init__.py +0 -0
  95. damga-1.0.0/damga/en/itn/writers/sentence.py +21 -0
  96. damga-1.0.0/damga/en/lexicon.py +67 -0
  97. damga-1.0.0/damga/en/numbers.py +159 -0
  98. damga-1.0.0/damga/en/punctuation.py +19 -0
  99. damga-1.0.0/damga/en/tn/__init__.py +0 -0
  100. damga-1.0.0/damga/en/tn/categories.py +2 -0
  101. damga-1.0.0/damga/en/tn/compiled/meta.json +10 -0
  102. damga-1.0.0/damga/en/tn/compiled/read.fst +0 -0
  103. damga-1.0.0/damga/en/tn/compiled/variants.fst +0 -0
  104. damga-1.0.0/damga/en/tn/compiled/write.fst +0 -0
  105. damga-1.0.0/damga/en/tn/data/lexicon_entries.tsv +19 -0
  106. damga-1.0.0/damga/en/tn/data/units.tsv +67 -0
  107. damga-1.0.0/damga/en/tn/normalizer.py +249 -0
  108. damga-1.0.0/damga/en/tn/readers/__init__.py +0 -0
  109. damga-1.0.0/damga/en/tn/readers/bank.py +84 -0
  110. damga-1.0.0/damga/en/tn/readers/cardinal.py +48 -0
  111. damga-1.0.0/damga/en/tn/readers/date.py +103 -0
  112. damga-1.0.0/damga/en/tn/readers/decimal.py +57 -0
  113. damga-1.0.0/damga/en/tn/readers/email_url.py +42 -0
  114. damga-1.0.0/damga/en/tn/readers/fraction.py +51 -0
  115. damga-1.0.0/damga/en/tn/readers/lexicon_entry.py +28 -0
  116. damga-1.0.0/damga/en/tn/readers/measure.py +54 -0
  117. damga-1.0.0/damga/en/tn/readers/money.py +61 -0
  118. damga-1.0.0/damga/en/tn/readers/ordinal.py +25 -0
  119. damga-1.0.0/damga/en/tn/readers/range.py +18 -0
  120. damga-1.0.0/damga/en/tn/readers/sentence.py +116 -0
  121. damga-1.0.0/damga/en/tn/readers/telephone.py +102 -0
  122. damga-1.0.0/damga/en/tn/readers/time.py +52 -0
  123. damga-1.0.0/damga/en/tn/writers/__init__.py +0 -0
  124. damga-1.0.0/damga/en/tn/writers/sentence.py +21 -0
  125. damga-1.0.0/damga/es/__init__.py +2 -0
  126. damga-1.0.0/damga/es/itn/__init__.py +0 -0
  127. damga-1.0.0/damga/es/itn/categories.py +1 -0
  128. damga-1.0.0/damga/es/itn/compiled/meta.json +9 -0
  129. damga-1.0.0/damga/es/itn/compiled/read.fst +0 -0
  130. damga-1.0.0/damga/es/itn/compiled/write.fst +0 -0
  131. damga-1.0.0/damga/es/itn/normalizer.py +93 -0
  132. damga-1.0.0/damga/es/itn/readers/__init__.py +0 -0
  133. damga-1.0.0/damga/es/itn/readers/cardinal.py +58 -0
  134. damga-1.0.0/damga/es/itn/readers/date.py +36 -0
  135. damga-1.0.0/damga/es/itn/readers/decimal.py +29 -0
  136. damga-1.0.0/damga/es/itn/readers/email_url.py +39 -0
  137. damga-1.0.0/damga/es/itn/readers/lexicon_entry.py +20 -0
  138. damga-1.0.0/damga/es/itn/readers/measure.py +20 -0
  139. damga-1.0.0/damga/es/itn/readers/money.py +52 -0
  140. damga-1.0.0/damga/es/itn/readers/ordinal.py +60 -0
  141. damga-1.0.0/damga/es/itn/readers/sentence.py +75 -0
  142. damga-1.0.0/damga/es/itn/readers/telephone.py +66 -0
  143. damga-1.0.0/damga/es/itn/readers/time.py +54 -0
  144. damga-1.0.0/damga/es/itn/writers/__init__.py +0 -0
  145. damga-1.0.0/damga/es/itn/writers/sentence.py +21 -0
  146. damga-1.0.0/damga/es/lexicon.py +81 -0
  147. damga-1.0.0/damga/es/numbers.py +108 -0
  148. damga-1.0.0/damga/es/punctuation.py +17 -0
  149. damga-1.0.0/damga/es/tn/__init__.py +0 -0
  150. damga-1.0.0/damga/es/tn/categories.py +2 -0
  151. damga-1.0.0/damga/es/tn/compiled/meta.json +10 -0
  152. damga-1.0.0/damga/es/tn/compiled/read.fst +0 -0
  153. damga-1.0.0/damga/es/tn/compiled/variants.fst +0 -0
  154. damga-1.0.0/damga/es/tn/compiled/write.fst +0 -0
  155. damga-1.0.0/damga/es/tn/data/lexicon_entries.tsv +46 -0
  156. damga-1.0.0/damga/es/tn/data/units.tsv +41 -0
  157. damga-1.0.0/damga/es/tn/normalizer.py +283 -0
  158. damga-1.0.0/damga/es/tn/readers/__init__.py +0 -0
  159. damga-1.0.0/damga/es/tn/readers/bank.py +82 -0
  160. damga-1.0.0/damga/es/tn/readers/cardinal.py +36 -0
  161. damga-1.0.0/damga/es/tn/readers/code.py +25 -0
  162. damga-1.0.0/damga/es/tn/readers/date.py +28 -0
  163. damga-1.0.0/damga/es/tn/readers/decimal.py +41 -0
  164. damga-1.0.0/damga/es/tn/readers/email_url.py +37 -0
  165. damga-1.0.0/damga/es/tn/readers/fraction.py +91 -0
  166. damga-1.0.0/damga/es/tn/readers/lexicon_entry.py +28 -0
  167. damga-1.0.0/damga/es/tn/readers/measure.py +60 -0
  168. damga-1.0.0/damga/es/tn/readers/money.py +71 -0
  169. damga-1.0.0/damga/es/tn/readers/ordinal.py +52 -0
  170. damga-1.0.0/damga/es/tn/readers/range.py +16 -0
  171. damga-1.0.0/damga/es/tn/readers/sentence.py +118 -0
  172. damga-1.0.0/damga/es/tn/readers/telephone.py +125 -0
  173. damga-1.0.0/damga/es/tn/readers/time.py +74 -0
  174. damga-1.0.0/damga/es/tn/units.py +58 -0
  175. damga-1.0.0/damga/es/tn/writers/__init__.py +0 -0
  176. damga-1.0.0/damga/es/tn/writers/sentence.py +21 -0
  177. damga-1.0.0/damga/fr/__init__.py +2 -0
  178. damga-1.0.0/damga/fr/itn/__init__.py +0 -0
  179. damga-1.0.0/damga/fr/itn/categories.py +1 -0
  180. damga-1.0.0/damga/fr/itn/compiled/meta.json +9 -0
  181. damga-1.0.0/damga/fr/itn/compiled/read.fst +0 -0
  182. damga-1.0.0/damga/fr/itn/compiled/write.fst +0 -0
  183. damga-1.0.0/damga/fr/itn/normalizer.py +79 -0
  184. damga-1.0.0/damga/fr/itn/readers/__init__.py +0 -0
  185. damga-1.0.0/damga/fr/itn/readers/cardinal.py +77 -0
  186. damga-1.0.0/damga/fr/itn/readers/date.py +26 -0
  187. damga-1.0.0/damga/fr/itn/readers/decimal.py +40 -0
  188. damga-1.0.0/damga/fr/itn/readers/email_url.py +39 -0
  189. damga-1.0.0/damga/fr/itn/readers/fraction.py +27 -0
  190. damga-1.0.0/damga/fr/itn/readers/measure.py +52 -0
  191. damga-1.0.0/damga/fr/itn/readers/ordinal.py +31 -0
  192. damga-1.0.0/damga/fr/itn/readers/sentence.py +83 -0
  193. damga-1.0.0/damga/fr/itn/readers/telephone.py +56 -0
  194. damga-1.0.0/damga/fr/itn/readers/time.py +46 -0
  195. damga-1.0.0/damga/fr/itn/writers/__init__.py +0 -0
  196. damga-1.0.0/damga/fr/itn/writers/sentence.py +21 -0
  197. damga-1.0.0/damga/fr/lexicon.py +57 -0
  198. damga-1.0.0/damga/fr/numbers.py +142 -0
  199. damga-1.0.0/damga/fr/tn/__init__.py +0 -0
  200. damga-1.0.0/damga/fr/tn/categories.py +2 -0
  201. damga-1.0.0/damga/fr/tn/compiled/meta.json +10 -0
  202. damga-1.0.0/damga/fr/tn/compiled/read.fst +0 -0
  203. damga-1.0.0/damga/fr/tn/compiled/variants.fst +0 -0
  204. damga-1.0.0/damga/fr/tn/compiled/write.fst +0 -0
  205. damga-1.0.0/damga/fr/tn/data/lexicon_entries.tsv +26 -0
  206. damga-1.0.0/damga/fr/tn/data/units.tsv +34 -0
  207. damga-1.0.0/damga/fr/tn/normalizer.py +100 -0
  208. damga-1.0.0/damga/fr/tn/readers/__init__.py +0 -0
  209. damga-1.0.0/damga/fr/tn/readers/bank.py +76 -0
  210. damga-1.0.0/damga/fr/tn/readers/cardinal.py +46 -0
  211. damga-1.0.0/damga/fr/tn/readers/date.py +40 -0
  212. damga-1.0.0/damga/fr/tn/readers/decimal.py +51 -0
  213. damga-1.0.0/damga/fr/tn/readers/email_url.py +36 -0
  214. damga-1.0.0/damga/fr/tn/readers/fraction.py +37 -0
  215. damga-1.0.0/damga/fr/tn/readers/lexicon_entry.py +28 -0
  216. damga-1.0.0/damga/fr/tn/readers/measure.py +69 -0
  217. damga-1.0.0/damga/fr/tn/readers/money.py +57 -0
  218. damga-1.0.0/damga/fr/tn/readers/ordinal.py +34 -0
  219. damga-1.0.0/damga/fr/tn/readers/range.py +27 -0
  220. damga-1.0.0/damga/fr/tn/readers/sentence.py +116 -0
  221. damga-1.0.0/damga/fr/tn/readers/telephone.py +67 -0
  222. damga-1.0.0/damga/fr/tn/readers/time.py +39 -0
  223. damga-1.0.0/damga/fr/tn/writers/__init__.py +0 -0
  224. damga-1.0.0/damga/fr/tn/writers/sentence.py +21 -0
  225. damga-1.0.0/damga/it/__init__.py +2 -0
  226. damga-1.0.0/damga/it/itn/__init__.py +0 -0
  227. damga-1.0.0/damga/it/itn/categories.py +1 -0
  228. damga-1.0.0/damga/it/itn/compiled/meta.json +9 -0
  229. damga-1.0.0/damga/it/itn/compiled/read.fst +0 -0
  230. damga-1.0.0/damga/it/itn/compiled/write.fst +0 -0
  231. damga-1.0.0/damga/it/itn/normalizer.py +84 -0
  232. damga-1.0.0/damga/it/itn/readers/__init__.py +0 -0
  233. damga-1.0.0/damga/it/itn/readers/cardinal.py +66 -0
  234. damga-1.0.0/damga/it/itn/readers/date.py +27 -0
  235. damga-1.0.0/damga/it/itn/readers/decimal.py +29 -0
  236. damga-1.0.0/damga/it/itn/readers/email_url.py +29 -0
  237. damga-1.0.0/damga/it/itn/readers/lexicon_entry.py +18 -0
  238. damga-1.0.0/damga/it/itn/readers/money.py +47 -0
  239. damga-1.0.0/damga/it/itn/readers/ordinal.py +34 -0
  240. damga-1.0.0/damga/it/itn/readers/sentence.py +76 -0
  241. damga-1.0.0/damga/it/itn/readers/telephone.py +74 -0
  242. damga-1.0.0/damga/it/itn/readers/time.py +36 -0
  243. damga-1.0.0/damga/it/itn/writers/__init__.py +0 -0
  244. damga-1.0.0/damga/it/lexicon.py +65 -0
  245. damga-1.0.0/damga/it/numbers.py +116 -0
  246. damga-1.0.0/damga/it/tn/__init__.py +0 -0
  247. damga-1.0.0/damga/it/tn/categories.py +2 -0
  248. damga-1.0.0/damga/it/tn/compiled/meta.json +9 -0
  249. damga-1.0.0/damga/it/tn/compiled/read.fst +0 -0
  250. damga-1.0.0/damga/it/tn/compiled/write.fst +0 -0
  251. damga-1.0.0/damga/it/tn/data/lexicon_entries.tsv +62 -0
  252. damga-1.0.0/damga/it/tn/data/units.tsv +49 -0
  253. damga-1.0.0/damga/it/tn/normalizer.py +247 -0
  254. damga-1.0.0/damga/it/tn/readers/__init__.py +0 -0
  255. damga-1.0.0/damga/it/tn/readers/bank.py +80 -0
  256. damga-1.0.0/damga/it/tn/readers/cardinal.py +28 -0
  257. damga-1.0.0/damga/it/tn/readers/date.py +38 -0
  258. damga-1.0.0/damga/it/tn/readers/decimal.py +43 -0
  259. damga-1.0.0/damga/it/tn/readers/email_url.py +43 -0
  260. damga-1.0.0/damga/it/tn/readers/fraction.py +31 -0
  261. damga-1.0.0/damga/it/tn/readers/lexicon_entry.py +28 -0
  262. damga-1.0.0/damga/it/tn/readers/measure.py +51 -0
  263. damga-1.0.0/damga/it/tn/readers/money.py +69 -0
  264. damga-1.0.0/damga/it/tn/readers/ordinal.py +43 -0
  265. damga-1.0.0/damga/it/tn/readers/range.py +31 -0
  266. damga-1.0.0/damga/it/tn/readers/sentence.py +87 -0
  267. damga-1.0.0/damga/it/tn/readers/telephone.py +72 -0
  268. damga-1.0.0/damga/it/tn/readers/time.py +39 -0
  269. damga-1.0.0/damga/it/tn/variants.py +94 -0
  270. damga-1.0.0/damga/it/tn/writers/__init__.py +0 -0
  271. damga-1.0.0/damga/ru/__init__.py +2 -0
  272. damga-1.0.0/damga/ru/itn/__init__.py +0 -0
  273. damga-1.0.0/damga/ru/itn/categories.py +1 -0
  274. damga-1.0.0/damga/ru/itn/compiled/meta.json +9 -0
  275. damga-1.0.0/damga/ru/itn/compiled/read.fst +0 -0
  276. damga-1.0.0/damga/ru/itn/compiled/write.fst +0 -0
  277. damga-1.0.0/damga/ru/itn/normalizer.py +132 -0
  278. damga-1.0.0/damga/ru/itn/readers/__init__.py +0 -0
  279. damga-1.0.0/damga/ru/itn/readers/cardinal.py +46 -0
  280. damga-1.0.0/damga/ru/itn/readers/common.py +85 -0
  281. damga-1.0.0/damga/ru/itn/readers/date.py +49 -0
  282. damga-1.0.0/damga/ru/itn/readers/decimal.py +18 -0
  283. damga-1.0.0/damga/ru/itn/readers/email_url.py +53 -0
  284. damga-1.0.0/damga/ru/itn/readers/lexicon_entry.py +18 -0
  285. damga-1.0.0/damga/ru/itn/readers/measure.py +28 -0
  286. damga-1.0.0/damga/ru/itn/readers/ordinal.py +21 -0
  287. damga-1.0.0/damga/ru/itn/readers/sentence.py +68 -0
  288. damga-1.0.0/damga/ru/itn/readers/telephone.py +52 -0
  289. damga-1.0.0/damga/ru/itn/readers/time.py +26 -0
  290. damga-1.0.0/damga/ru/itn/writers/__init__.py +0 -0
  291. damga-1.0.0/damga/ru/itn/writers/sentence.py +21 -0
  292. damga-1.0.0/damga/ru/lexicon.py +223 -0
  293. damga-1.0.0/damga/ru/numbers.py +217 -0
  294. damga-1.0.0/damga/ru/tn/__init__.py +0 -0
  295. damga-1.0.0/damga/ru/tn/categories.py +1 -0
  296. damga-1.0.0/damga/ru/tn/compiled/meta.json +10 -0
  297. damga-1.0.0/damga/ru/tn/compiled/read.fst +0 -0
  298. damga-1.0.0/damga/ru/tn/compiled/variants.fst +0 -0
  299. damga-1.0.0/damga/ru/tn/compiled/write.fst +0 -0
  300. damga-1.0.0/damga/ru/tn/data/lexicon_entries.tsv +19 -0
  301. damga-1.0.0/damga/ru/tn/normalizer.py +242 -0
  302. damga-1.0.0/damga/ru/tn/readers/__init__.py +0 -0
  303. damga-1.0.0/damga/ru/tn/readers/bank.py +83 -0
  304. damga-1.0.0/damga/ru/tn/readers/cardinal.py +34 -0
  305. damga-1.0.0/damga/ru/tn/readers/common.py +89 -0
  306. damga-1.0.0/damga/ru/tn/readers/date.py +117 -0
  307. damga-1.0.0/damga/ru/tn/readers/decimal.py +36 -0
  308. damga-1.0.0/damga/ru/tn/readers/email_url.py +34 -0
  309. damga-1.0.0/damga/ru/tn/readers/fraction.py +46 -0
  310. damga-1.0.0/damga/ru/tn/readers/lexicon_entry.py +29 -0
  311. damga-1.0.0/damga/ru/tn/readers/measure.py +148 -0
  312. damga-1.0.0/damga/ru/tn/readers/ordinal.py +50 -0
  313. damga-1.0.0/damga/ru/tn/readers/range.py +36 -0
  314. damga-1.0.0/damga/ru/tn/readers/sentence.py +110 -0
  315. damga-1.0.0/damga/ru/tn/readers/telephone.py +98 -0
  316. damga-1.0.0/damga/ru/tn/readers/time.py +28 -0
  317. damga-1.0.0/damga/ru/tn/writers/__init__.py +0 -0
  318. damga-1.0.0/damga/ru/tn/writers/sentence.py +21 -0
  319. damga-1.0.0/damga/streaming/__init__.py +4 -0
  320. damga-1.0.0/damga/streaming/normalizer.py +127 -0
  321. damga-1.0.0/damga/streaming/sentences.py +63 -0
  322. damga-1.0.0/damga/tr/__init__.py +2 -0
  323. damga-1.0.0/damga/tr/itn/__init__.py +1 -0
  324. damga-1.0.0/damga/tr/itn/categories.py +2 -0
  325. damga-1.0.0/damga/tr/itn/compiled/meta.json +9 -0
  326. damga-1.0.0/damga/tr/itn/compiled/read.fst +0 -0
  327. damga-1.0.0/damga/tr/itn/compiled/write.fst +0 -0
  328. damga-1.0.0/damga/tr/itn/data/README.md +19 -0
  329. damga-1.0.0/damga/tr/itn/data/brands.tsv +453 -0
  330. damga-1.0.0/damga/tr/itn/data/brands_extra.tsv +712 -0
  331. damga-1.0.0/damga/tr/itn/data/currency.tsv +18 -0
  332. damga-1.0.0/damga/tr/itn/data/domains.tsv +209 -0
  333. damga-1.0.0/damga/tr/itn/data/email_providers.tsv +7872 -0
  334. damga-1.0.0/damga/tr/itn/data/lexicon_entries.tsv +58 -0
  335. damga-1.0.0/damga/tr/itn/data/units.tsv +55 -0
  336. damga-1.0.0/damga/tr/itn/normalizer.py +88 -0
  337. damga-1.0.0/damga/tr/itn/readers/__init__.py +1 -0
  338. damga-1.0.0/damga/tr/itn/readers/address.py +34 -0
  339. damga-1.0.0/damga/tr/itn/readers/cardinal.py +132 -0
  340. damga-1.0.0/damga/tr/itn/readers/date.py +51 -0
  341. damga-1.0.0/damga/tr/itn/readers/decimal.py +44 -0
  342. damga-1.0.0/damga/tr/itn/readers/email.py +136 -0
  343. damga-1.0.0/damga/tr/itn/readers/iban.py +22 -0
  344. damga-1.0.0/damga/tr/itn/readers/lexicon_entry.py +61 -0
  345. damga-1.0.0/damga/tr/itn/readers/measure.py +25 -0
  346. damga-1.0.0/damga/tr/itn/readers/money.py +48 -0
  347. damga-1.0.0/damga/tr/itn/readers/ordinal.py +26 -0
  348. damga-1.0.0/damga/tr/itn/readers/percent.py +34 -0
  349. damga-1.0.0/damga/tr/itn/readers/plate.py +57 -0
  350. damga-1.0.0/damga/tr/itn/readers/sentence.py +123 -0
  351. damga-1.0.0/damga/tr/itn/readers/spelling.py +120 -0
  352. damga-1.0.0/damga/tr/itn/readers/telephone.py +134 -0
  353. damga-1.0.0/damga/tr/itn/readers/time.py +92 -0
  354. damga-1.0.0/damga/tr/itn/readers/word.py +30 -0
  355. damga-1.0.0/damga/tr/itn/repair.py +183 -0
  356. damga-1.0.0/damga/tr/itn/writers/__init__.py +1 -0
  357. damga-1.0.0/damga/tr/itn/writers/address.py +19 -0
  358. damga-1.0.0/damga/tr/itn/writers/cardinal.py +53 -0
  359. damga-1.0.0/damga/tr/itn/writers/date.py +31 -0
  360. damga-1.0.0/damga/tr/itn/writers/decimal.py +26 -0
  361. damga-1.0.0/damga/tr/itn/writers/email.py +14 -0
  362. damga-1.0.0/damga/tr/itn/writers/iban.py +14 -0
  363. damga-1.0.0/damga/tr/itn/writers/lexicon_entry.py +14 -0
  364. damga-1.0.0/damga/tr/itn/writers/measure.py +17 -0
  365. damga-1.0.0/damga/tr/itn/writers/money.py +16 -0
  366. damga-1.0.0/damga/tr/itn/writers/ordinal.py +16 -0
  367. damga-1.0.0/damga/tr/itn/writers/percent.py +16 -0
  368. damga-1.0.0/damga/tr/itn/writers/plate.py +17 -0
  369. damga-1.0.0/damga/tr/itn/writers/sentence.py +62 -0
  370. damga-1.0.0/damga/tr/itn/writers/spelling.py +14 -0
  371. damga-1.0.0/damga/tr/itn/writers/telephone.py +14 -0
  372. damga-1.0.0/damga/tr/itn/writers/time.py +18 -0
  373. damga-1.0.0/damga/tr/itn/writers/word.py +14 -0
  374. damga-1.0.0/damga/tr/lexicon.py +44 -0
  375. damga-1.0.0/damga/tr/morph.py +115 -0
  376. damga-1.0.0/damga/tr/tn/__init__.py +1 -0
  377. damga-1.0.0/damga/tr/tn/categories.py +2 -0
  378. damga-1.0.0/damga/tr/tn/compiled/meta.json +9 -0
  379. damga-1.0.0/damga/tr/tn/compiled/read.fst +0 -0
  380. damga-1.0.0/damga/tr/tn/compiled/write.fst +0 -0
  381. damga-1.0.0/damga/tr/tn/data/currency.tsv +14 -0
  382. damga-1.0.0/damga/tr/tn/data/lexicon_entries.tsv +25 -0
  383. damga-1.0.0/damga/tr/tn/data/units.tsv +43 -0
  384. damga-1.0.0/damga/tr/tn/normalizer.py +237 -0
  385. damga-1.0.0/damga/tr/tn/readers/__init__.py +1 -0
  386. damga-1.0.0/damga/tr/tn/readers/cardinal.py +27 -0
  387. damga-1.0.0/damga/tr/tn/readers/date.py +39 -0
  388. damga-1.0.0/damga/tr/tn/readers/decimal.py +61 -0
  389. damga-1.0.0/damga/tr/tn/readers/email.py +22 -0
  390. damga-1.0.0/damga/tr/tn/readers/iban.py +18 -0
  391. damga-1.0.0/damga/tr/tn/readers/lexicon_entry.py +27 -0
  392. damga-1.0.0/damga/tr/tn/readers/measure.py +32 -0
  393. damga-1.0.0/damga/tr/tn/readers/money.py +40 -0
  394. damga-1.0.0/damga/tr/tn/readers/ordinal.py +21 -0
  395. damga-1.0.0/damga/tr/tn/readers/percent.py +24 -0
  396. damga-1.0.0/damga/tr/tn/readers/plate.py +20 -0
  397. damga-1.0.0/damga/tr/tn/readers/sentence.py +132 -0
  398. damga-1.0.0/damga/tr/tn/readers/telephone.py +23 -0
  399. damga-1.0.0/damga/tr/tn/readers/time.py +25 -0
  400. damga-1.0.0/damga/tr/tn/variants.py +208 -0
  401. damga-1.0.0/damga/tr/tn/writers/__init__.py +1 -0
  402. damga-1.0.0/damga/tr/tn/writers/cardinal.py +28 -0
  403. damga-1.0.0/damga/tr/tn/writers/date.py +31 -0
  404. damga-1.0.0/damga/tr/tn/writers/decimal.py +56 -0
  405. damga-1.0.0/damga/tr/tn/writers/email.py +3 -0
  406. damga-1.0.0/damga/tr/tn/writers/iban.py +22 -0
  407. damga-1.0.0/damga/tr/tn/writers/measure.py +17 -0
  408. damga-1.0.0/damga/tr/tn/writers/money.py +71 -0
  409. damga-1.0.0/damga/tr/tn/writers/number.py +34 -0
  410. damga-1.0.0/damga/tr/tn/writers/ordinal.py +25 -0
  411. damga-1.0.0/damga/tr/tn/writers/percent.py +18 -0
  412. damga-1.0.0/damga/tr/tn/writers/plate.py +25 -0
  413. damga-1.0.0/damga/tr/tn/writers/sentence.py +25 -0
  414. damga-1.0.0/damga/tr/tn/writers/telephone.py +24 -0
  415. damga-1.0.0/damga/tr/tn/writers/time.py +24 -0
  416. damga-1.0.0/damga.egg-info/PKG-INFO +490 -0
  417. damga-1.0.0/damga.egg-info/SOURCES.txt +727 -0
  418. damga-1.0.0/damga.egg-info/dependency_links.txt +1 -0
  419. damga-1.0.0/damga.egg-info/requires.txt +11 -0
  420. damga-1.0.0/damga.egg-info/top_level.txt +1 -0
  421. damga-1.0.0/docs/adding-a-language.md +70 -0
  422. damga-1.0.0/docs/architecture.md +136 -0
  423. damga-1.0.0/docs/deterministic.md +254 -0
  424. damga-1.0.0/docs/deterministic.tr.md +260 -0
  425. damga-1.0.0/docs/grammars.md +35 -0
  426. damga-1.0.0/docs/integrations.md +318 -0
  427. damga-1.0.0/docs/release-checklist.md +15 -0
  428. damga-1.0.0/docs/streaming.md +56 -0
  429. damga-1.0.0/docs/voice-pipeline.md +178 -0
  430. damga-1.0.0/docs/voice-pipeline.tr.md +177 -0
  431. damga-1.0.0/examples/README.md +84 -0
  432. damga-1.0.0/examples/basic_itn.py +16 -0
  433. damga-1.0.0/examples/elevenlabs_stt_tts.py +75 -0
  434. damga-1.0.0/examples/mic_streaming.py +73 -0
  435. damga-1.0.0/examples/mihu_stt_cloud.py +93 -0
  436. damga-1.0.0/examples/mihu_stt_onprem.py +68 -0
  437. damga-1.0.0/examples/ollama_tn_tts.py +59 -0
  438. damga-1.0.0/examples/streaming_asr.py +10 -0
  439. damga-1.0.0/examples/tn_variants_asr.py +50 -0
  440. damga-1.0.0/examples/tn_variants_lm.py +99 -0
  441. damga-1.0.0/examples/try_it.py +48 -0
  442. damga-1.0.0/examples/whisper_itn.py +53 -0
  443. damga-1.0.0/pyproject.toml +70 -0
  444. damga-1.0.0/setup.cfg +4 -0
  445. damga-1.0.0/setup.py +28 -0
  446. damga-1.0.0/src/damga_fstrt.cc +161 -0
  447. damga-1.0.0/tests/__init__.py +1 -0
  448. damga-1.0.0/tests/conftest.py +35 -0
  449. damga-1.0.0/tests/golden/de/itn.tsv +102 -0
  450. damga-1.0.0/tests/golden/de/tn.tsv +180 -0
  451. damga-1.0.0/tests/golden/en/itn.tsv +97 -0
  452. damga-1.0.0/tests/golden/en/tn.tsv +172 -0
  453. damga-1.0.0/tests/golden/es/itn.tsv +86 -0
  454. damga-1.0.0/tests/golden/es/tn.tsv +190 -0
  455. damga-1.0.0/tests/golden/fr/itn.tsv +119 -0
  456. damga-1.0.0/tests/golden/fr/tn.tsv +127 -0
  457. damga-1.0.0/tests/golden/it/itn.tsv +110 -0
  458. damga-1.0.0/tests/golden/it/tn.tsv +207 -0
  459. damga-1.0.0/tests/golden/itn.tsv +775 -0
  460. damga-1.0.0/tests/golden/itn_asr.tsv +103 -0
  461. damga-1.0.0/tests/golden/ru/itn.tsv +118 -0
  462. damga-1.0.0/tests/golden/ru/tn.tsv +212 -0
  463. damga-1.0.0/tests/golden/test_golden_de.py +77 -0
  464. damga-1.0.0/tests/golden/test_golden_en.py +81 -0
  465. damga-1.0.0/tests/golden/test_golden_es.py +80 -0
  466. damga-1.0.0/tests/golden/test_golden_fr.py +75 -0
  467. damga-1.0.0/tests/golden/test_golden_it.py +83 -0
  468. damga-1.0.0/tests/golden/test_golden_itn.py +11 -0
  469. damga-1.0.0/tests/golden/test_golden_itn_asr.py +11 -0
  470. damga-1.0.0/tests/golden/test_golden_ru.py +73 -0
  471. damga-1.0.0/tests/golden/test_golden_tn.py +9 -0
  472. damga-1.0.0/tests/golden/tn.tsv +369 -0
  473. damga-1.0.0/tests/integration/__init__.py +0 -0
  474. damga-1.0.0/tests/integration/test_voice_pipeline.py +232 -0
  475. damga-1.0.0/tests/property/__init__.py +1 -0
  476. damga-1.0.0/tests/property/test_phone_and_units.py +55 -0
  477. damga-1.0.0/tests/property/test_properties.py +46 -0
  478. damga-1.0.0/tests/run_installed.py +21 -0
  479. damga-1.0.0/tests/unit/__init__.py +1 -0
  480. damga-1.0.0/tests/unit/test_api.py +68 -0
  481. damga-1.0.0/tests/unit/test_cardinal_itn.py +68 -0
  482. damga-1.0.0/tests/unit/test_de_itn_fraction_digits.py +102 -0
  483. damga-1.0.0/tests/unit/test_en_itn_unit_symbols.py +86 -0
  484. damga-1.0.0/tests/unit/test_en_numbers.py +37 -0
  485. damga-1.0.0/tests/unit/test_es_tn_ordinal_words.py +90 -0
  486. damga-1.0.0/tests/unit/test_native_runtime.py +130 -0
  487. damga-1.0.0/tests/unit/test_repair.py +68 -0
  488. damga-1.0.0/tests/unit/test_ru_itn_ordinal_digits.py +84 -0
  489. damga-1.0.0/tests/unit/test_runtime_without_pynini.py +37 -0
  490. damga-1.0.0/tests/unit/test_sentences.py +18 -0
  491. damga-1.0.0/tests/unit/test_streaming.py +63 -0
  492. damga-1.0.0/tests/unit/test_variants.py +166 -0
  493. damga-1.0.0/third_party/openfst/COPYING +13 -0
  494. damga-1.0.0/third_party/openfst/README.md +2 -0
  495. damga-1.0.0/third_party/openfst/src/include/Makefile.am +147 -0
  496. damga-1.0.0/third_party/openfst/src/include/Makefile.in +812 -0
  497. damga-1.0.0/third_party/openfst/src/include/fst/accumulator.h +928 -0
  498. damga-1.0.0/third_party/openfst/src/include/fst/add-on.h +257 -0
  499. damga-1.0.0/third_party/openfst/src/include/fst/arc-arena.h +253 -0
  500. damga-1.0.0/third_party/openfst/src/include/fst/arc-map.h +1451 -0
  501. damga-1.0.0/third_party/openfst/src/include/fst/arc.h +219 -0
  502. damga-1.0.0/third_party/openfst/src/include/fst/arcfilter.h +105 -0
  503. damga-1.0.0/third_party/openfst/src/include/fst/arcsort.h +235 -0
  504. damga-1.0.0/third_party/openfst/src/include/fst/bi-table.h +489 -0
  505. damga-1.0.0/third_party/openfst/src/include/fst/cache.h +1345 -0
  506. damga-1.0.0/third_party/openfst/src/include/fst/cc-visitors.h +266 -0
  507. damga-1.0.0/third_party/openfst/src/include/fst/closure.h +153 -0
  508. damga-1.0.0/third_party/openfst/src/include/fst/compact-fst.h +1644 -0
  509. damga-1.0.0/third_party/openfst/src/include/fst/compat.h +332 -0
  510. damga-1.0.0/third_party/openfst/src/include/fst/complement.h +297 -0
  511. damga-1.0.0/third_party/openfst/src/include/fst/compose-filter.h +591 -0
  512. damga-1.0.0/third_party/openfst/src/include/fst/compose.h +1061 -0
  513. damga-1.0.0/third_party/openfst/src/include/fst/concat.h +254 -0
  514. damga-1.0.0/third_party/openfst/src/include/fst/connect.h +102 -0
  515. damga-1.0.0/third_party/openfst/src/include/fst/const-fst.h +477 -0
  516. damga-1.0.0/third_party/openfst/src/include/fst/determinize.h +1133 -0
  517. damga-1.0.0/third_party/openfst/src/include/fst/dfs-visit.h +221 -0
  518. damga-1.0.0/third_party/openfst/src/include/fst/difference.h +230 -0
  519. damga-1.0.0/third_party/openfst/src/include/fst/disambiguate.h +595 -0
  520. damga-1.0.0/third_party/openfst/src/include/fst/edit-fst.h +724 -0
  521. damga-1.0.0/third_party/openfst/src/include/fst/encode.h +638 -0
  522. damga-1.0.0/third_party/openfst/src/include/fst/epsnormalize.h +81 -0
  523. damga-1.0.0/third_party/openfst/src/include/fst/equal.h +185 -0
  524. damga-1.0.0/third_party/openfst/src/include/fst/equivalent.h +243 -0
  525. damga-1.0.0/third_party/openfst/src/include/fst/error-weight.h +77 -0
  526. damga-1.0.0/third_party/openfst/src/include/fst/expanded-fst.h +215 -0
  527. damga-1.0.0/third_party/openfst/src/include/fst/expander-cache.h +242 -0
  528. damga-1.0.0/third_party/openfst/src/include/fst/expectation-weight.h +229 -0
  529. damga-1.0.0/third_party/openfst/src/include/fst/extensions/compress/compress.h +803 -0
  530. damga-1.0.0/third_party/openfst/src/include/fst/extensions/compress/compressscript.h +62 -0
  531. damga-1.0.0/third_party/openfst/src/include/fst/extensions/compress/elias.h +110 -0
  532. damga-1.0.0/third_party/openfst/src/include/fst/extensions/far/compile-strings.h +264 -0
  533. damga-1.0.0/third_party/openfst/src/include/fst/extensions/far/convert.h +48 -0
  534. damga-1.0.0/third_party/openfst/src/include/fst/extensions/far/create.h +64 -0
  535. damga-1.0.0/third_party/openfst/src/include/fst/extensions/far/encode.h +54 -0
  536. damga-1.0.0/third_party/openfst/src/include/fst/extensions/far/equal.h +50 -0
  537. damga-1.0.0/third_party/openfst/src/include/fst/extensions/far/extract.h +126 -0
  538. damga-1.0.0/third_party/openfst/src/include/fst/extensions/far/far-class.h +287 -0
  539. damga-1.0.0/third_party/openfst/src/include/fst/extensions/far/far.h +532 -0
  540. damga-1.0.0/third_party/openfst/src/include/fst/extensions/far/farlib.h +33 -0
  541. damga-1.0.0/third_party/openfst/src/include/fst/extensions/far/farscript.h +280 -0
  542. damga-1.0.0/third_party/openfst/src/include/fst/extensions/far/getters.h +46 -0
  543. damga-1.0.0/third_party/openfst/src/include/fst/extensions/far/info.h +168 -0
  544. damga-1.0.0/third_party/openfst/src/include/fst/extensions/far/isomorphic.h +50 -0
  545. damga-1.0.0/third_party/openfst/src/include/fst/extensions/far/map-reduce.h +113 -0
  546. damga-1.0.0/third_party/openfst/src/include/fst/extensions/far/print-strings.h +117 -0
  547. damga-1.0.0/third_party/openfst/src/include/fst/extensions/far/script-impl.h +37 -0
  548. damga-1.0.0/third_party/openfst/src/include/fst/extensions/far/stlist.h +307 -0
  549. damga-1.0.0/third_party/openfst/src/include/fst/extensions/far/sttable.h +385 -0
  550. damga-1.0.0/third_party/openfst/src/include/fst/extensions/linear/linear-fst-data-builder.h +1092 -0
  551. damga-1.0.0/third_party/openfst/src/include/fst/extensions/linear/linear-fst-data.h +539 -0
  552. damga-1.0.0/third_party/openfst/src/include/fst/extensions/linear/linear-fst.h +1188 -0
  553. damga-1.0.0/third_party/openfst/src/include/fst/extensions/linear/linearscript.h +424 -0
  554. damga-1.0.0/third_party/openfst/src/include/fst/extensions/linear/loglinear-apply.h +92 -0
  555. damga-1.0.0/third_party/openfst/src/include/fst/extensions/linear/trie.h +453 -0
  556. damga-1.0.0/third_party/openfst/src/include/fst/extensions/mpdt/compose.h +293 -0
  557. damga-1.0.0/third_party/openfst/src/include/fst/extensions/mpdt/expand.h +358 -0
  558. damga-1.0.0/third_party/openfst/src/include/fst/extensions/mpdt/info.h +209 -0
  559. damga-1.0.0/third_party/openfst/src/include/fst/extensions/mpdt/mpdt.h +319 -0
  560. damga-1.0.0/third_party/openfst/src/include/fst/extensions/mpdt/mpdtlib.h +32 -0
  561. damga-1.0.0/third_party/openfst/src/include/fst/extensions/mpdt/mpdtscript.h +171 -0
  562. damga-1.0.0/third_party/openfst/src/include/fst/extensions/mpdt/read_write_utils.h +103 -0
  563. damga-1.0.0/third_party/openfst/src/include/fst/extensions/mpdt/reverse.h +70 -0
  564. damga-1.0.0/third_party/openfst/src/include/fst/extensions/ngram/bitmap-index.h +365 -0
  565. damga-1.0.0/third_party/openfst/src/include/fst/extensions/ngram/ngram-fst.h +1052 -0
  566. damga-1.0.0/third_party/openfst/src/include/fst/extensions/ngram/nthbit.h +136 -0
  567. damga-1.0.0/third_party/openfst/src/include/fst/extensions/pdt/collection.h +121 -0
  568. damga-1.0.0/third_party/openfst/src/include/fst/extensions/pdt/compose.h +525 -0
  569. damga-1.0.0/third_party/openfst/src/include/fst/extensions/pdt/expand.h +970 -0
  570. damga-1.0.0/third_party/openfst/src/include/fst/extensions/pdt/getters.h +37 -0
  571. damga-1.0.0/third_party/openfst/src/include/fst/extensions/pdt/info.h +169 -0
  572. damga-1.0.0/third_party/openfst/src/include/fst/extensions/pdt/paren.h +480 -0
  573. damga-1.0.0/third_party/openfst/src/include/fst/extensions/pdt/pdt.h +184 -0
  574. damga-1.0.0/third_party/openfst/src/include/fst/extensions/pdt/pdtlib.h +33 -0
  575. damga-1.0.0/third_party/openfst/src/include/fst/extensions/pdt/pdtscript.h +278 -0
  576. damga-1.0.0/third_party/openfst/src/include/fst/extensions/pdt/replace.h +844 -0
  577. damga-1.0.0/third_party/openfst/src/include/fst/extensions/pdt/reverse.h +55 -0
  578. damga-1.0.0/third_party/openfst/src/include/fst/extensions/pdt/shortest-path.h +745 -0
  579. damga-1.0.0/third_party/openfst/src/include/fst/extensions/special/phi-fst.h +190 -0
  580. damga-1.0.0/third_party/openfst/src/include/fst/extensions/special/rho-fst.h +177 -0
  581. damga-1.0.0/third_party/openfst/src/include/fst/extensions/special/sigma-fst.h +180 -0
  582. damga-1.0.0/third_party/openfst/src/include/fst/factor-weight.h +538 -0
  583. damga-1.0.0/third_party/openfst/src/include/fst/filter-state.h +207 -0
  584. damga-1.0.0/third_party/openfst/src/include/fst/flags.h +237 -0
  585. damga-1.0.0/third_party/openfst/src/include/fst/float-weight.h +1182 -0
  586. damga-1.0.0/third_party/openfst/src/include/fst/fst-decl.h +282 -0
  587. damga-1.0.0/third_party/openfst/src/include/fst/fst.h +979 -0
  588. damga-1.0.0/third_party/openfst/src/include/fst/fstlib.h +131 -0
  589. damga-1.0.0/third_party/openfst/src/include/fst/generic-register.h +154 -0
  590. damga-1.0.0/third_party/openfst/src/include/fst/heap.h +188 -0
  591. damga-1.0.0/third_party/openfst/src/include/fst/icu.h +146 -0
  592. damga-1.0.0/third_party/openfst/src/include/fst/impl-to-fst.h +144 -0
  593. damga-1.0.0/third_party/openfst/src/include/fst/intersect.h +205 -0
  594. damga-1.0.0/third_party/openfst/src/include/fst/interval-set.h +418 -0
  595. damga-1.0.0/third_party/openfst/src/include/fst/invert.h +158 -0
  596. damga-1.0.0/third_party/openfst/src/include/fst/isomorphic.h +268 -0
  597. damga-1.0.0/third_party/openfst/src/include/fst/label-reachable.h +615 -0
  598. damga-1.0.0/third_party/openfst/src/include/fst/lexicographic-weight.h +181 -0
  599. damga-1.0.0/third_party/openfst/src/include/fst/lock.h +84 -0
  600. damga-1.0.0/third_party/openfst/src/include/fst/log.h +82 -0
  601. damga-1.0.0/third_party/openfst/src/include/fst/lookahead-filter.h +643 -0
  602. damga-1.0.0/third_party/openfst/src/include/fst/lookahead-matcher.h +876 -0
  603. damga-1.0.0/third_party/openfst/src/include/fst/mapped-file.h +113 -0
  604. damga-1.0.0/third_party/openfst/src/include/fst/matcher-fst.h +389 -0
  605. damga-1.0.0/third_party/openfst/src/include/fst/matcher.h +1582 -0
  606. damga-1.0.0/third_party/openfst/src/include/fst/memory.h +366 -0
  607. damga-1.0.0/third_party/openfst/src/include/fst/minimize.h +577 -0
  608. damga-1.0.0/third_party/openfst/src/include/fst/mutable-fst.h +427 -0
  609. damga-1.0.0/third_party/openfst/src/include/fst/pair-weight.h +173 -0
  610. damga-1.0.0/third_party/openfst/src/include/fst/partition.h +322 -0
  611. damga-1.0.0/third_party/openfst/src/include/fst/power-weight-mappers.h +112 -0
  612. damga-1.0.0/third_party/openfst/src/include/fst/power-weight.h +186 -0
  613. damga-1.0.0/third_party/openfst/src/include/fst/product-weight.h +154 -0
  614. damga-1.0.0/third_party/openfst/src/include/fst/project.h +184 -0
  615. damga-1.0.0/third_party/openfst/src/include/fst/properties.h +531 -0
  616. damga-1.0.0/third_party/openfst/src/include/fst/prune.h +338 -0
  617. damga-1.0.0/third_party/openfst/src/include/fst/push.h +169 -0
  618. damga-1.0.0/third_party/openfst/src/include/fst/queue.h +1021 -0
  619. damga-1.0.0/third_party/openfst/src/include/fst/randequivalent.h +138 -0
  620. damga-1.0.0/third_party/openfst/src/include/fst/randgen.h +781 -0
  621. damga-1.0.0/third_party/openfst/src/include/fst/rational.h +330 -0
  622. damga-1.0.0/third_party/openfst/src/include/fst/register.h +137 -0
  623. damga-1.0.0/third_party/openfst/src/include/fst/relabel.h +481 -0
  624. damga-1.0.0/third_party/openfst/src/include/fst/replace-util.h +650 -0
  625. damga-1.0.0/third_party/openfst/src/include/fst/replace.h +1537 -0
  626. damga-1.0.0/third_party/openfst/src/include/fst/reverse.h +135 -0
  627. damga-1.0.0/third_party/openfst/src/include/fst/reweight.h +149 -0
  628. damga-1.0.0/third_party/openfst/src/include/fst/rmepsilon.h +581 -0
  629. damga-1.0.0/third_party/openfst/src/include/fst/rmfinalepsilon.h +97 -0
  630. damga-1.0.0/third_party/openfst/src/include/fst/script/arc-class.h +58 -0
  631. damga-1.0.0/third_party/openfst/src/include/fst/script/arcfilter-impl.h +34 -0
  632. damga-1.0.0/third_party/openfst/src/include/fst/script/arciterator-class.h +232 -0
  633. damga-1.0.0/third_party/openfst/src/include/fst/script/arcsort.h +57 -0
  634. damga-1.0.0/third_party/openfst/src/include/fst/script/arg-packs.h +51 -0
  635. damga-1.0.0/third_party/openfst/src/include/fst/script/closure.h +44 -0
  636. damga-1.0.0/third_party/openfst/src/include/fst/script/compile-impl.h +237 -0
  637. damga-1.0.0/third_party/openfst/src/include/fst/script/compile.h +102 -0
  638. damga-1.0.0/third_party/openfst/src/include/fst/script/compose.h +50 -0
  639. damga-1.0.0/third_party/openfst/src/include/fst/script/concat.h +74 -0
  640. damga-1.0.0/third_party/openfst/src/include/fst/script/connect.h +37 -0
  641. damga-1.0.0/third_party/openfst/src/include/fst/script/convert.h +53 -0
  642. damga-1.0.0/third_party/openfst/src/include/fst/script/decode.h +46 -0
  643. damga-1.0.0/third_party/openfst/src/include/fst/script/determinize.h +77 -0
  644. damga-1.0.0/third_party/openfst/src/include/fst/script/difference.h +52 -0
  645. damga-1.0.0/third_party/openfst/src/include/fst/script/disambiguate.h +71 -0
  646. damga-1.0.0/third_party/openfst/src/include/fst/script/draw-impl.h +212 -0
  647. damga-1.0.0/third_party/openfst/src/include/fst/script/draw.h +77 -0
  648. damga-1.0.0/third_party/openfst/src/include/fst/script/encode.h +46 -0
  649. damga-1.0.0/third_party/openfst/src/include/fst/script/encodemapper-class.h +300 -0
  650. damga-1.0.0/third_party/openfst/src/include/fst/script/epsnormalize.h +47 -0
  651. damga-1.0.0/third_party/openfst/src/include/fst/script/equal.h +48 -0
  652. damga-1.0.0/third_party/openfst/src/include/fst/script/equivalent.h +51 -0
  653. damga-1.0.0/third_party/openfst/src/include/fst/script/fst-class.h +686 -0
  654. damga-1.0.0/third_party/openfst/src/include/fst/script/fstscript.h +165 -0
  655. damga-1.0.0/third_party/openfst/src/include/fst/script/getters.h +97 -0
  656. damga-1.0.0/third_party/openfst/src/include/fst/script/info-impl.h +352 -0
  657. damga-1.0.0/third_party/openfst/src/include/fst/script/info.h +50 -0
  658. damga-1.0.0/third_party/openfst/src/include/fst/script/intersect.h +52 -0
  659. damga-1.0.0/third_party/openfst/src/include/fst/script/invert.h +37 -0
  660. damga-1.0.0/third_party/openfst/src/include/fst/script/isomorphic.h +50 -0
  661. damga-1.0.0/third_party/openfst/src/include/fst/script/map.h +175 -0
  662. damga-1.0.0/third_party/openfst/src/include/fst/script/minimize.h +49 -0
  663. damga-1.0.0/third_party/openfst/src/include/fst/script/print-impl.h +144 -0
  664. damga-1.0.0/third_party/openfst/src/include/fst/script/print.h +88 -0
  665. damga-1.0.0/third_party/openfst/src/include/fst/script/project.h +43 -0
  666. damga-1.0.0/third_party/openfst/src/include/fst/script/prune.h +81 -0
  667. damga-1.0.0/third_party/openfst/src/include/fst/script/push.h +72 -0
  668. damga-1.0.0/third_party/openfst/src/include/fst/script/randequivalent.h +84 -0
  669. damga-1.0.0/third_party/openfst/src/include/fst/script/randgen.h +80 -0
  670. damga-1.0.0/third_party/openfst/src/include/fst/script/relabel.h +82 -0
  671. damga-1.0.0/third_party/openfst/src/include/fst/script/replace.h +91 -0
  672. damga-1.0.0/third_party/openfst/src/include/fst/script/reverse.h +46 -0
  673. damga-1.0.0/third_party/openfst/src/include/fst/script/reweight.h +53 -0
  674. damga-1.0.0/third_party/openfst/src/include/fst/script/rmepsilon.h +138 -0
  675. damga-1.0.0/third_party/openfst/src/include/fst/script/script-impl.h +242 -0
  676. damga-1.0.0/third_party/openfst/src/include/fst/script/shortest-distance.h +253 -0
  677. damga-1.0.0/third_party/openfst/src/include/fst/script/shortest-path.h +152 -0
  678. damga-1.0.0/third_party/openfst/src/include/fst/script/stateiterator-class.h +103 -0
  679. damga-1.0.0/third_party/openfst/src/include/fst/script/synchronize.h +45 -0
  680. damga-1.0.0/third_party/openfst/src/include/fst/script/text-io.h +43 -0
  681. damga-1.0.0/third_party/openfst/src/include/fst/script/topsort.h +40 -0
  682. damga-1.0.0/third_party/openfst/src/include/fst/script/union.h +64 -0
  683. damga-1.0.0/third_party/openfst/src/include/fst/script/verify.h +42 -0
  684. damga-1.0.0/third_party/openfst/src/include/fst/script/weight-class.h +253 -0
  685. damga-1.0.0/third_party/openfst/src/include/fst/set-weight.h +638 -0
  686. damga-1.0.0/third_party/openfst/src/include/fst/shortest-distance.h +369 -0
  687. damga-1.0.0/third_party/openfst/src/include/fst/shortest-path.h +530 -0
  688. damga-1.0.0/third_party/openfst/src/include/fst/signed-log-weight.h +621 -0
  689. damga-1.0.0/third_party/openfst/src/include/fst/sparse-power-weight.h +229 -0
  690. damga-1.0.0/third_party/openfst/src/include/fst/sparse-tuple-weight.h +434 -0
  691. damga-1.0.0/third_party/openfst/src/include/fst/state-map.h +639 -0
  692. damga-1.0.0/third_party/openfst/src/include/fst/state-reachable.h +240 -0
  693. damga-1.0.0/third_party/openfst/src/include/fst/state-table.h +512 -0
  694. damga-1.0.0/third_party/openfst/src/include/fst/statesort.h +90 -0
  695. damga-1.0.0/third_party/openfst/src/include/fst/string-weight.h +834 -0
  696. damga-1.0.0/third_party/openfst/src/include/fst/string.h +413 -0
  697. damga-1.0.0/third_party/openfst/src/include/fst/symbol-table-ops.h +92 -0
  698. damga-1.0.0/third_party/openfst/src/include/fst/symbol-table.h +586 -0
  699. damga-1.0.0/third_party/openfst/src/include/fst/synchronize.h +421 -0
  700. damga-1.0.0/third_party/openfst/src/include/fst/test/algo_test.h +1452 -0
  701. damga-1.0.0/third_party/openfst/src/include/fst/test/compactors.h +174 -0
  702. damga-1.0.0/third_party/openfst/src/include/fst/test/fst_test.h +347 -0
  703. damga-1.0.0/third_party/openfst/src/include/fst/test/rand-fst.h +115 -0
  704. damga-1.0.0/third_party/openfst/src/include/fst/test/weight-tester.h +241 -0
  705. damga-1.0.0/third_party/openfst/src/include/fst/test-properties.h +241 -0
  706. damga-1.0.0/third_party/openfst/src/include/fst/topsort.h +107 -0
  707. damga-1.0.0/third_party/openfst/src/include/fst/tuple-weight.h +178 -0
  708. damga-1.0.0/third_party/openfst/src/include/fst/union-find.h +105 -0
  709. damga-1.0.0/third_party/openfst/src/include/fst/union-weight.h +524 -0
  710. damga-1.0.0/third_party/openfst/src/include/fst/union.h +190 -0
  711. damga-1.0.0/third_party/openfst/src/include/fst/util.h +517 -0
  712. damga-1.0.0/third_party/openfst/src/include/fst/vector-fst.h +828 -0
  713. damga-1.0.0/third_party/openfst/src/include/fst/verify.h +114 -0
  714. damga-1.0.0/third_party/openfst/src/include/fst/visit.h +339 -0
  715. damga-1.0.0/third_party/openfst/src/include/fst/weight.h +409 -0
  716. damga-1.0.0/third_party/openfst/src/include/fst/windows_defs.inc +21 -0
  717. damga-1.0.0/third_party/openfst/src/lib/Makefile.am +8 -0
  718. damga-1.0.0/third_party/openfst/src/lib/Makefile.in +719 -0
  719. damga-1.0.0/third_party/openfst/src/lib/compat.cc +110 -0
  720. damga-1.0.0/third_party/openfst/src/lib/encode.cc +84 -0
  721. damga-1.0.0/third_party/openfst/src/lib/flags.cc +162 -0
  722. damga-1.0.0/third_party/openfst/src/lib/fst-types.cc +61 -0
  723. damga-1.0.0/third_party/openfst/src/lib/fst.cc +145 -0
  724. damga-1.0.0/third_party/openfst/src/lib/mapped-file.cc +223 -0
  725. damga-1.0.0/third_party/openfst/src/lib/properties.cc +445 -0
  726. damga-1.0.0/third_party/openfst/src/lib/symbol-table-ops.cc +148 -0
  727. damga-1.0.0/third_party/openfst/src/lib/symbol-table.cc +432 -0
  728. damga-1.0.0/third_party/openfst/src/lib/util.cc +127 -0
  729. damga-1.0.0/third_party/openfst/src/lib/weight.cc +144 -0
@@ -0,0 +1,218 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project are documented here. The format follows
4
+ [Keep a Changelog](https://keepachangelog.com/) and the project uses
5
+ [Semantic Versioning](https://semver.org/).
6
+
7
+ ## [1.0.0] — 2026-10-16
8
+
9
+ Initial release. Turkish first, with English, German, French, Spanish, Italian and Russian.
10
+
11
+ ### Added
12
+ - Self-contained runtime: `damga._fstrt`, a small C++ extension with OpenFst 1.8.4 statically linked
13
+ (`third_party/openfst`, Apache-2.0), runs the precompiled grammars shipped in the wheel
14
+ (`damga/<lang>/<mode>/compiled/`); `pip install damga` works on Linux, macOS and Windows with no
15
+ other dependency and no first-run compile. pynini is the optional `build` extra
16
+ (`python -m damga.build` compiles grammars); `backend="auto"|"native"|"pynini"` and `DAMGA_BACKEND`
17
+ select the engine, both backends are tested to give identical output.
18
+ - Per-language layout: grammars under `damga/<lang>/{itn,tn}/` (Turkish = `damga/tr`), language
19
+ registry in `damga/api.py`, `lang=` parameter on `Normalizer`/`InverseNormalizer`/`TextNormalizer`
20
+ (default `tr`), `available_languages()`; adding a language is a new folder plus one registry line.
21
+ - WFST engine (Pynini/OpenFst): reader → writer pipeline (`readers/`, `writers/`), FAR cache keyed by
22
+ grammar source hash + version, Turkish-aware Unicode preprocessing.
23
+ - ITN grammars: cardinal, ordinal, negative, decimal, money, percent/permille,
24
+ measure, time (incl. `geçe`/`kala` and case suffixes), date, telephone, IBAN,
25
+ plate, e-mail/web, address, spelling, lexicon entries + custom vocabulary.
26
+ - TN grammars for the same classes, including apostrophe suffixes.
27
+ - `Normalizer`, `InverseNormalizer`, `TextNormalizer` APIs with batch support,
28
+ category selection, strict mode, `preserve_case` and diagnostics.
29
+ - `StreamingNormalizer` with revision-aware partial hypotheses, safe-boundary
30
+ commits (3-word lag, attach-next back-off), bounded buffering, `flush()`/`reset()`;
31
+ the final result is always re-normalized from the whole utterance
32
+ (final == batch on 1 200/1 200 simulated utterances).
33
+ - `address` ITN class: `numara on iki daire yedi` → `No: 12 Daire: 7` (`no`/`numara`, `kat`, `daire`).
34
+ - `spelling` ITN class for the Turkish letter-coding habit `Diyarbakır'ın D'si, Edirne'nin E'si …` → `Derya`.
35
+ The mnemonic's first letter decides; the letter token is accepted loosely as recognizers mangle it
36
+ (`desi`, `ağası`, `üyesi`, `nisi`, `NS'i`, `H S`, `es`, glued `niğde'ninesi`, bare `konya'nın ke`).
37
+ All Turkish letters are covered (ğ via `yumuşak ge'si`; mnemonics starting with â/î/û map to a/i/u).
38
+ Guarded against ordinary speech: loose letter tokens only after a possessive mnemonic, function words
39
+ (`ve`, `ile`, …) are never mnemonics, 3+ letter acronyms (`BBC ve ITV`) are not letter tokens.
40
+ - Brand/domain tables: `brands.tsv`, `brands_extra.tsv`, `domains.tsv`, `email_providers.tsv`
41
+ (free-email-domains, MIT); inflected brands keep their suffix (`mercedes'iniz` → `Mercedes'iniz`).
42
+ Entries that are ordinary Turkish words (`boş`, `krom`, `garanti`, `pınar`, `martı`, `metro`, `koç`, `meta`,
43
+ `safari`, …) are deliberately absent: context-free capitalisation corrupts normal speech
44
+ (`boş zaman` → `Bosch zaman`); multi-word forms (`Garanti BBVA`, `Koç Holding`) are kept.
45
+ - Recognizer-tolerant grammars: written digits and punctuation inside spoken numbers, ROUND penalty and
46
+ follower guard for telephone/IBAN grouping, `graph_mixed` (`40 bir` = 41) inside context classes,
47
+ glued `et`/`nokta`, `dat`/`dot`, `noktacom`, TLD aliases (`kom`, `ay`) next to a *spoken* dot only,
48
+ known-domain recovery, Levenshtein domain aliases, phonetic alphabet and spelled letters in plates.
49
+ Two bare words are glued into an e-mail local part only across a plain space (never a comma); a bare,
50
+ already-written domain (`Gezginler.com`) is left untouched unless something in it was spoken.
51
+ - `preprocess(keep_caps=True)`: 1–3 letter ALL-CAPS recognizer tokens are kept (spelled letters);
52
+ an ALL-CAPS utterance is lower-cased as a whole so `YİRMİ BEŞ` still becomes `25`.
53
+ - `preserve_case=True` (default): words the grammar leaves untouched keep the recognizer's casing.
54
+ - Quotes and backslashes inside tokens are escaped in the token record and re-attached from the source spacing.
55
+ - Golden test sets (ITN/TN/real recognizer output), property-based tests, streaming and adapter tests;
56
+ benchmark script with measured results.
57
+ - Validation: 1 200 end-to-end TTS → Mihu STT → Damga sentences (79% exact; the previous regex
58
+ normalizer 52%), 600-clip phone/e-mail KPI set, and a false-positive scan on plain Turkish sentences (no
59
+ change other than number/ordinal/date/money/unit conversions).
60
+ - Six languages besides Turkish, TN and ITN each: English (`en`), German (`de`), French (`fr`), Spanish (`es`), Italian
61
+ (`it`) and Russian (`ru`), with `lang="…"` everywhere (`TextNormalizer`, `InverseNormalizer`, `Normalizer`,
62
+ `StreamingNormalizer`). Readings follow what speakers actually say: English years 2010–2019 *two thousand
63
+ thirteen* and from 2020 *twenty twenty four*, German numbers
64
+ written as one word, French *mille neuf cent*, Spanish gender agreement (*veintiuna personas*), Italian
65
+ *duemilasedici*; Russian agrees numbers with case and gender (*до пяти лет*, *в две тысячи двенадцатом году*).
66
+ - The core takes a language's casing rules (`damga.core.unicode.Casing`); Turkish stays the default.
67
+ - Non-deterministic TN for all seven languages: `TextNormalizer(lang=…, deterministic=False)` gives
68
+ `normalize_variants`, `normalize_matching` and `normalize_in_context` (`damga.core.readings`). The readings of
69
+ the new languages come from a variants grammar compiled next to the default one (`compiled/variants.fst`) and
70
+ read by the native runtime's new n-best search (`Grammar.rewrite_nbest`); see `docs/deterministic.md`.
71
+ - `damga.core.variants.best`: the closest reading without computing the value signal of readings that cannot win
72
+ (same result as `rank(...)[0]`).
73
+ - Turkish coverage round.
74
+ TN: point decimals (`1.6 milyon` → *bir nokta altı milyon*, `6.97` → *altı doksan yedi*, `%3.6`), ranges and
75
+ scores (`3-5`, `%30-40`, `7.-8. sınıf`, `2-1`), letters with numbers (`Covid-19`, `F-35'ler`,
76
+ `F16`), ordinals before names (`1. Dünya Savaşı` → *birinci*), glued ordinals (`6.sınıf`), `+`/`−` signs and a
77
+ free-standing `-` next to a one-letter variable (`15 - b` → *on beş eksi b*; between two whole numbers it is a range, `2 - 1` → *iki bir*, otherwise it stays a dash), `3.50 TL` as money, `5-li` as `5'li`, `,5'luk` → *buçukluk*, numeric dates with a suffix,
78
+ abbreviated years (`'19`). Variants: `nokta`/`virgül`/bare decimal readings, point decimals as clock times, a
79
+ numeric month read as a number, `N.` before a capitalised word as an ordinal.
80
+ ITN: `bir nokta dokuz` → `1,9`; a scale word after a decimal stays a word (`on iki virgül üç milyon` →
81
+ `12,3 milyon`, was `12,3000000`; `iki buçuk milyon` → `2,5 milyon`, was `2,5 1.000.000`); every inflection of
82
+ the last word of a multi-word number (`kırk beşin` → `45'in`, was `40 beşin`; `yüz elliydi` → `150'ydi`;
83
+ `yirmi dokuzunda` → `29'unda`) and after `yüzde` (`yüzde on altısı` → `%16'sı`, `yüzde onluk` → `%10'luk`);
84
+ decade words alone with plural/`-li`/`-lik`/genitive (`doksanlı yıllar` → `90'lı yıllar`, `yetmişler`);
85
+ genitive of single digit words (`sekizin` → `8'in`); years before plural year words (`1950 yılları`); month
86
+ names written with an apostrophe (`bir Mayıs'ta` → `1 Mayıs'ta`). New options `group_four_digits=False` and
87
+ `scale_words=True` (defaults unchanged).
88
+ - Non-deterministic TN: `TextNormalizer(deterministic=False)` adds `normalize_variants()` (every reading of a
89
+ written form, the default first: `09:30` → *dokuz otuz*, *dokuz buçuk*; `2,5` → *iki buçuk*; `250 TL` → *… lira*;
90
+ `21:45` → *ona çeyrek var*; phone numbers digit by digit) and `normalize_matching(text, heard)` (the reading
91
+ closest to a transcript, for TTS/ASR training text). Deterministic stays the default and `normalize()` output
92
+ is unchanged; ITN rejects `deterministic=False`. See `docs/deterministic.md`.
93
+ - `normalize_matching(..., max_distance=)` and `rank_matching()`: every reading with its distance to the
94
+ transcript (about differences per heard word), to filter recordings; `max_distance` falls back to the default
95
+ for a transcript that may belong to another sentence.
96
+ - `normalize_in_context(text, score, margin=)`: choose a reading without a recording, with any scorer (e.g. a
97
+ language model); the default stays unless another reading wins by more than `margin`. Damga ships no model;
98
+ `examples/tn_variants_lm.py` uses a Turkish GPT-2 on the CPU.
99
+ - `benchmarks/tn_variants.py`: end-to-end test of `normalize_matching` (sentences → reading drawn at random → any
100
+ TTS → any recognizer → score). With Mihu Turkish STT on a held-out 1000 recordings: 92.2% of spoken readings
101
+ recovered vs 49.6% for deterministic TN (`benchmarks/results/tn-variants-20261012.md`).
102
+ - ITN `repair_spelling=True` (default): diacritic-less (`yuz elli`, `uc`, `bes`, `sifir`) and glued
103
+ (`yirmibeş`, `onbeş`, `üçyüzkırkbeş`) number words are restored before the grammars run, so recognizer output
104
+ no longer ends up half-converted (`seksen bes` → `80 bes`). Closed vocabulary only; `binbir`, `uç` and
105
+ words such as `yüzbaşı` are left alone. See `damga/tr/itn/repair.py`.
106
+ - E-mail: `alt tire` / `altı tire` as underscore, `ko` / `cım` / `kım` / `kem` as spoken `com`.
107
+ - ~115 brand and ~40 mail-domain mis-hearing variants, 25 spelled acronyms (GSM, SMS, ATM, VIP, QR, CPU, API, KPI,
108
+ CEO, TCDD, …) in the data tables.
109
+ - ~650 new golden cases (ITN and TN), property tests for phone digit preservation and unit-vs-plate, and strict
110
+ xfails for the gaps that remain.
111
+ - ITN: `sıfır sıfır` / `sıfır beş` minutes after the hour (`saat yirmi iki sıfır sıfır` → `saat 22:00`), `çeyrek var` /
112
+ `on var` (`sekize çeyrek var` → `07:45`), `https iki nokta bölü bölü mihu nokta ai` → `https://mihu.ai`
113
+ (with `bölü` path parts), `bilgi@` as a local part, plate letter name `ka`, spelled acronyms of three or more
114
+ consonant letter names (`a be ce` → `ABC`, `ka pe ka` → `KPK`), idioms kept as words (`beş parasız`, `yüz yüze`),
115
+ fractions kept as words (`üçte bir`, `onda biri`; `saat üçte bir toplantı` still reads the time).
116
+ - `repair_spelling` also restores ASCII-folded suffixed forms (`sifirdan`, `bese`, `dortte`, `altmisa`); accusative
117
+ and genitive forms are not touched because `besi` / `beste` are real words.
118
+ - E-mail: a two-word domain label glued to the TLD (`et örnek mağaza.com` → `@ornekmagaza.com`), capitalized
119
+ spoken TLDs (`nokta TR`), a recognizer comma after a role word (`iletişim, Özdemir`), and the `giymiel` family of
120
+ gmail mis-hearings.
121
+ - Streaming: ASCII-folded number words count as continuation words, like their diacritic spellings.
122
+ - `tests/golden/itn_asr.tsv` is now asserted (`test_golden_itn_asr.py`); `# xfail: <why>` comment lines mark
123
+ tracked gaps as strict xfails. The expected column follows `preserve_case` (untouched words keep the
124
+ recognizer's casing).
125
+ - `examples/mic_streaming.py`: live microphone → Mihu STT → streaming ITN.
126
+ - `benchmarks/latency.py`: quick pynini-free latency check on the native runtime.
127
+ - `docs/integrations.md`: Whisper / faster-whisper, generic streaming recognizers (Vosk, sherpa-onnx, cloud
128
+ partials), Ollama and other LLMs (sentence-wise TN before TTS), TTS engines, voice-agent frameworks.
129
+ Examples `examples/whisper_itn.py` and `examples/ollama_tn_tts.py` (stdlib only).
130
+ - `damga.streaming.split_sentences()` / `SentenceSplitter`: cuts streamed text (LLM tokens) into sentences only
131
+ where the punctuation is followed by whitespace, so `25.600` or `15.10.2026` arriving token by token stays whole;
132
+ ordinals (`3. sırada`) and common abbreviations are not sentence ends. Use it before TN on a streamed reply.
133
+ - Examples: `examples/mihu_stt_onprem.py` (Mihu STT on your CPU, batch + simulated stream, `--model-dir`),
134
+ `examples/mihu_stt_cloud.py` (Mihu STT cloud API, file upload and WebSocket stream),
135
+ `examples/elevenlabs_stt_tts.py` (ElevenLabs Scribe → ITN, TN → ElevenLabs voice, and a round trip).
136
+ - `docs/voice-pipeline.md` / `docs/voice-pipeline.tr.md`: how Damga works in a live call and in batch
137
+ transcription, on-prem and cloud, with what the pipeline tests verify (English and Turkish).
138
+ - `tests/integration/test_voice_pipeline.py`: Damga inside a voice pipeline without network or models — live
139
+ captions from streaming STT hypotheses (committed text only grows, final equals batch ITN), a full voice-agent
140
+ turn (ITN into the LLM, sentence-wise TN of a token-streamed reply into the voice, speech starting before the
141
+ reply ends), turns that start clean, per-segment ITN of recordings, and concurrent calls.
142
+ - `damga/tr/lexicon.py`: pure-data word lists (digits, ties, scales, months, year/currency/separator words)
143
+ shared by the grammars and the streaming commit policy; `damga.api.language_lexicon(lang)`;
144
+ `StreamingNormalizer(lang=...)`.
145
+ - README: "How it works" section explaining the token-based two-pass pipeline and why it is not a single-pass
146
+ rewrite; integration overview.
147
+ - TN: an IBAN is read digit by digit with a pause between the written groups (`TR33 0006 1005 …` → *te re üç üç,
148
+ sıfır sıfır sıfır altı, bir sıfır sıfır beş, …*); fractions (`3/4` → *dörtte üç*, `1/2` → *ikide bir*, up to /100)
149
+ and `7/24` → *yedi yirmi dört*; speed units `km/s`, `km/h`, `m/s`; a range of numbers with three or more digits
150
+ takes *ile* (`1914-1918` → *bin dokuz yüz on dört ile bin dokuz yüz on sekiz*), short ranges and scores stay as
151
+ said (`3-5` → *üç beş*, `2-1`).
152
+ - TN, Turkish: after a bank word (`hesap numarası`, `hesap no`, `şube kodu`, `müşteri numarası`) a number is
153
+ dictated digit by digit with a pause between the written groups (`Hesap no 1234-5678-90` → *bir iki üç dört, beş
154
+ altı yedi sekiz, dokuz sıfır*).
155
+ - TN, every other language: IBANs of any country are spelled and read digit by digit with a pause between the
156
+ groups (`DE89 3704 …` → *D E acht neun, drei sieben null vier, …*), and domestic bank numbers after their keyword
157
+ are read digit by digit: English sort code, account and routing number; German BLZ and Kontonummer; French RIB,
158
+ code banque/guichet; Spanish número de cuenta and CCC; Italian ABI, CAB and conto; Russian р/с, к/с, БИК, ИНН,
159
+ КПП, ОГРН. `m/s` (`м/с`) is read in all six; `24/7` → *vingt-quatre sur sept* (it was read as a fraction),
160
+ *veinticuatro siete*, *ventiquattro su sette*, *двадцать четыре на семь*; fractions in Spanish (`3/4` → *tres
161
+ cuartos*, `1/2 kilo` → *medio kilo*), Italian (*tre quarti*) and Russian (*три четвертых*, with case); scores
162
+ are no longer read as ranges in German (`2-1` → *zwei zu eins*) and Russian (*два один*); year ranges take a
163
+ connector in French (`1914-1918` → *… à …*; the juxtaposed reading stays a variant) and Italian (*… al …*,
164
+ `100-200` → *cento a duecento*). New TN categories: `bank` (en, de, es), `fraction` (es, it), `iban` and
165
+ `bank_account` (it).
166
+ - TN telephone numbers in German, Spanish, Italian and Russian (there was no telephone grammar; `030 1234567` was
167
+ *null drei null eine Million …*) and North American formats in English (`(212) 555-1234` → *two one two, five
168
+ five five, one two three four*, `1-800-…` → *one, eight hundred, …*, `ext. 123`): read the way each language
169
+ dictates them (digit by digit in German, Italian and English; 2-digit groups as numbers in Spanish; groups as
170
+ numbers in Russian, `+7 (495) 123-45-67` → *плюс семь, четыреста девяносто пять, сто двадцать три, …*), with
171
+ a pause between the written groups. English UK and international numbers get the pauses too. A keyword
172
+ (`Tel.`, `Teléfono`, `Cellulare`, `тел.` …) allows more shapes; without one only the national phone shapes count.
173
+ Turkish: a suffix after a phone number (`0212 123 45 67'den`) no longer breaks the number apart.
174
+ - TN, German: acronyms said as a word are written as one (`SCHUFA-Auskunft` → *Schufa-Auskunft*, `TÜV`, `BAföG`,
175
+ `NATO`, `DAX` …; table `de/tn/data/acronym_words.tsv`), so a TTS voice does not spell them; spelled ones
176
+ (`ADAC`, `GmbH`) stay. New TN category `telephone` in de, es and it.
177
+ - ITN telephone numbers in English, German, French, Spanish, Italian and Russian (they stayed words or came out
178
+ half converted, `plus 33 un 23 …`): `call plus four four two zero seven nine four six zero nine five eight` →
179
+ `call +44 20 7946 0958`, `plus vier neun drei null …` → `+49 30 12345678`, `zéro six douze trente-quatre …` →
180
+ `06 12 34 56 78`, `más treinta y cuatro nueve uno dos …` → `+34 912 345 678`, `più trentanove zero sei …` →
181
+ `+39 06 12345678`, `плюс семь четыреста девяносто пять …` → `+7 495 123-45-67`; digits spoken one by one or in
182
+ groups, `double`/`oh`/`zwo`, national layouts (UK, North American, French pairs, Spanish 3-3-3, Russian
183
+ 3-3-2-2). Bare short runs and ordinary numbers stay as they are. Turkish: a 90 said right before a mobile
184
+ number is the country code when the recognizer dropped `artı` (`doksan beş yüz otuz iki …` → `+90 532 …`).
185
+ - TN international formats: `+CC-…` with dashes, `00CC`, a `(0)` trunk or an area code in parentheses, and glued
186
+ `+CC…` numbers (a known country code is split off) in every language; Turkish `+90-532-…` (it was read as a
187
+ range with *ile*) and `0090 …`. French phone numbers get a pause between their pairs.
188
+ - Fixes across the languages:
189
+ - English: ITN values (`… point five eight thousand` was `164.5 8,000`, `ninety nine hundred … dollars`,
190
+ `one fifty five dollars`), clock phrases (`half past three` → `3:30`, `a quarter to four`), spelled e-mails and
191
+ URLs, IP addresses; TN dates and decades, codes, digits after `card ending in`/PIN/OTP, `2 1/2`, money per unit
192
+ and ranges, street abbreviations (`Elm St.` was *saint*), more units.
193
+ - German: TN `Er wurde 3. von 120.` → *dritter* (was *drei.*), fractions with any denominator, `eineinhalb`, money
194
+ with lower-case scale words, per-unit measures, times with seconds; ITN numbers said in pieces (`zwei hundert
195
+ vier und fünfzig` → `254`), `neunzehn achtzig` → `1980`, money with cents, spelled e-mails.
196
+ - French: ITN `au moins vingt pays` was `au -20 pays` (a frequent phrase), wrong values in years and
197
+ `onze cents`, glued scale words, clock phrases (`midi moins le quart` → `11 h 45`), money agreement, spelled
198
+ e-mails, fractions after `de`; TN numeric dates, `1 1/2` → *un et demi*, day lists, titles `Mᵐᵉ`, `Dʳ`.
199
+ - Spanish: TN `1.000` was read as a clock time (*1:000*), `1 enero` → *uno de enero*, ordinals `1.ᵉʳ`/`2da`,
200
+ fractions (`1/21` → *un veintiunavo*), cents (`5,01 €` → *… con un céntimo*), 30 more currencies, times with
201
+ a.m./p.m. and seconds, abbreviations; ITN decimals said in groups, money, clock phrases, compound ordinals,
202
+ spelled e-mails.
203
+ - Italian: space-grouped thousands (`3 000 000 000 euro` was read digit by digit), money with cents (`€ 1.234,56`
204
+ → *… euro e cinquantasei*), `un milione di euro`, times with seconds, e-mail/URL reading, 20 abbreviations.
205
+ - Russian: TN money with kopecks/cents (`25 600,50 руб.` → *… рублей пятьдесят копеек*, was a decimal), `4-х` →
206
+ *четырех*, more date formats; ITN values (`тридцать одного рубля` was `30 одного`, `одна тысяча девятьсот …`
207
+ was `1000 996-го`), fractions, `часов и … минут`, a new spelled e-mail/URL reader.
208
+ - Writing-style options, off by default and applied after the grammars (no pynini needed): English ITN
209
+ `unit_symbols=True` (`two hundred kilometers per hour` → `200 km/h`), Spanish TN `formal_ordinals=True`
210
+ (`el 80.º aniversario` → *el octogésimo aniversario*), Russian ITN `ordinal_digits=True` (`восьмого` → `8-го`),
211
+ German ITN `fraction_digits=True` (`drei viertel` → `3/4`).
212
+ - A sentence that ends in an abbreviation keeps its full stop (`Я заплатил 25 руб.` → *… двадцать пять рублей.*);
213
+ ITN no longer doubles it (`und so weiter.` → `usw.`). English `hr`/`hrs`/`mins`/`sec`/`secs`, Italian
214
+ `mln`/`mld`, and Italian country codes said as a number (`+39` → *più trentanove*).
215
+
216
+ ### Known limitations
217
+ - `beş yüz altı yüz yetmiş beş …` is genuinely ambiguous (500 | 675 or 506 | 175); the
218
+ reading with fewer round groups wins.
@@ -0,0 +1,74 @@
1
+ # Contributing to Damga
2
+
3
+ Thank you for helping make Turkish text normalization better. Most
4
+ contributions are one of three kinds, in increasing order of effort:
5
+
6
+ ## 1. Add test cases (no code)
7
+
8
+ Golden files are tab-separated: `tests/golden/itn.tsv` (spoken → written) and
9
+ `tests/golden/tn.tsv` (written → spoken). Add a line, run `pytest`. If the
10
+ case fails, open a PR anyway and put a `# xfail: <why>` comment on the line
11
+ above it; the test then expects the failure and flags it when it starts
12
+ passing. Failing goldens are the best bug reports. `tests/golden/itn_asr.tsv`
13
+ holds real recognizer output: its expected column is what Damga should produce
14
+ from that transcript, not what the speaker said.
15
+
16
+ ## 2. Extend a data table
17
+
18
+ `damga/tr/itn/data/*.tsv` and `damga/tr/tn/data/*.tsv` hold currencies,
19
+ units, abbreviations and fixed lexicon entries. Keep spoken forms in lower case
20
+ (Turkish lower case: `İ → i`, `I → ı`), one entry per line, `#` for comments.
21
+
22
+ ## 3. Change or add a grammar
23
+
24
+ Each class has a **reader** (`.../readers/<class>.py`, spoken/written →
25
+ `class(field="value" …)`) and a **writer** (`.../writers/<class>.py`,
26
+ record → output). Follow these rules:
27
+
28
+ * Build with Pynini primitives from `damga/core/rules.py`; never
29
+ compile per request — a grammar is built once, in its `build()` method.
30
+ * Reuse `CardinalReader` sub-graphs (`graph`, `two_digit`, `three_digit`) for
31
+ numbers so all classes agree on how numbers are read.
32
+ * Prefer *not converting* over guessing. A grammar must not create digits,
33
+ letters or units that are not in the input.
34
+ * Express precedence with weights in `readers/sentence.py`
35
+ (`DEFAULT_WEIGHTS`), not with ad-hoc Python.
36
+ * Add golden cases for every new behaviour, including a negative case
37
+ (an input that must stay unchanged).
38
+ * Run `pytest`, `ruff check .`, and `python benchmarks/bench.py` if you
39
+ touched the sentence reader (compile time matters).
40
+
41
+ Grammar sources are hashed into the FAR cache key, so edits are picked up
42
+ automatically; no cache clearing is needed.
43
+
44
+ ## Development setup
45
+
46
+ ```bash
47
+ conda create -n damga -c conda-forge python=3.11 pynini pybind11
48
+ conda activate damga
49
+ pip install -e ".[dev]"
50
+ python setup.py build_ext --inplace # native runtime (damga/_fstrt*.so); needs a C++17 compiler
51
+ python -m damga.build # compiled grammars under damga/tr/{itn,tn}/compiled/
52
+ pytest # auto backend
53
+ DAMGA_BACKEND=pynini pytest # grammar sources, live
54
+ DAMGA_BACKEND=native pytest # the compiled grammars, as shipped in the wheel
55
+ ```
56
+
57
+ The compiled grammars and the extension are git-ignored (CI builds them); after
58
+ editing a grammar run `python -m damga.build` again, otherwise the native
59
+ backend keeps serving the old transducers (with pynini installed the engine
60
+ notices the stale fingerprint and falls back to pynini automatically).
61
+ Shared word lists (digits, months, currency words, streaming boundary words)
62
+ live in `damga/tr/lexicon.py`; add new keywords there, not in two places.
63
+
64
+ ## Style
65
+
66
+ `ruff` (line length 120), type hints where they help, docstrings that show an
67
+ input → output example. Comments explain *why* (a Turkish rule, an ASR quirk),
68
+ not *what* the code does.
69
+
70
+ ## Reporting issues
71
+
72
+ Please include the exact input string, the output you got, the output you
73
+ expected and `damga.__version__`. For ASR-related issues the raw
74
+ recognizer output is more useful than the audio.
damga-1.0.0/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright 2026 mihu.ai
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,10 @@
1
+ include LICENSE NOTICE README.md README.tr.md CHANGELOG.md CONTRIBUTING.md pyproject.toml setup.py
2
+ graft src
3
+ graft third_party/openfst
4
+ graft damga
5
+ graft tests
6
+ graft docs
7
+ graft examples
8
+ graft benchmarks
9
+ prune benchmarks/results
10
+ global-exclude __pycache__ *.py[cod] *.so *.pyd *.far .DS_Store
damga-1.0.0/NOTICE ADDED
@@ -0,0 +1,7 @@
1
+ Damga
2
+ Copyright 2026 Mihu AI
3
+
4
+ This product includes software developed at Mihu AI (https://mihu.ai).
5
+
6
+ This product bundles OpenFst 1.8.4 (third_party/openfst, Apache-2.0),
7
+ Copyright 2005-2024 Google LLC and contributors.