mailwoman 0.2.0

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 (1375) hide show
  1. package/.dockerignore +19 -0
  2. package/.editorconfig +19 -0
  3. package/.husky/pre-commit +2 -0
  4. package/.prettierignore +29 -0
  5. package/.vscode/extensions.json +18 -0
  6. package/.vscode/settings.json +132 -0
  7. package/Dockerfile +17 -0
  8. package/LICENSE.md +675 -0
  9. package/README.md +208 -0
  10. package/bin/cli.ts +54 -0
  11. package/classification/AdjacentClassification.test.ts +17 -0
  12. package/classification/AdjacentClassification.ts +13 -0
  13. package/classification/AlphaClassification.test.ts +17 -0
  14. package/classification/AlphaClassification.ts +13 -0
  15. package/classification/AlphaNumericClassification.test.ts +17 -0
  16. package/classification/AlphaNumericClassification.ts +13 -0
  17. package/classification/AreaClassification.test.ts +17 -0
  18. package/classification/AreaClassification.ts +13 -0
  19. package/classification/ChainClassification.test.ts +17 -0
  20. package/classification/ChainClassification.ts +13 -0
  21. package/classification/Classification.test.ts +17 -0
  22. package/classification/Classification.ts +107 -0
  23. package/classification/CountryClassification.test.ts +17 -0
  24. package/classification/CountryClassification.ts +18 -0
  25. package/classification/DependencyClassification.test.ts +17 -0
  26. package/classification/DependencyClassification.ts +14 -0
  27. package/classification/DirectionalClassification.test.ts +17 -0
  28. package/classification/DirectionalClassification.ts +13 -0
  29. package/classification/EndTokenClassification.test.ts +17 -0
  30. package/classification/EndTokenClassification.ts +13 -0
  31. package/classification/EndTokenSingleCharacterClassification.test.ts +17 -0
  32. package/classification/EndTokenSingleCharacterClassification.ts +13 -0
  33. package/classification/GivenNameClassification.test.ts +17 -0
  34. package/classification/GivenNameClassification.ts +13 -0
  35. package/classification/HouseNumberClassification.test.ts +17 -0
  36. package/classification/HouseNumberClassification.ts +14 -0
  37. package/classification/IntersectionClassification.test.ts +17 -0
  38. package/classification/IntersectionClassification.ts +13 -0
  39. package/classification/LevelClassification.ts +14 -0
  40. package/classification/LevelTypeClassification.ts +12 -0
  41. package/classification/LocalityClassification.test.ts +17 -0
  42. package/classification/LocalityClassification.ts +14 -0
  43. package/classification/MiddleInitialClassification.test.ts +17 -0
  44. package/classification/MiddleInitialClassification.ts +13 -0
  45. package/classification/MultiStreetClassification.test.ts +17 -0
  46. package/classification/MultiStreetClassification.ts +14 -0
  47. package/classification/NumericClassification.test.ts +17 -0
  48. package/classification/NumericClassification.ts +13 -0
  49. package/classification/OrdinalClassification.test.ts +17 -0
  50. package/classification/OrdinalClassification.ts +13 -0
  51. package/classification/PersonClassification.test.ts +17 -0
  52. package/classification/PersonClassification.ts +13 -0
  53. package/classification/PersonalSuffixClassification.test.ts +17 -0
  54. package/classification/PersonalSuffixClassification.ts +13 -0
  55. package/classification/PersonalTitleClassification.test.ts +17 -0
  56. package/classification/PersonalTitleClassification.ts +13 -0
  57. package/classification/PlaceClassification.test.ts +17 -0
  58. package/classification/PlaceClassification.ts +13 -0
  59. package/classification/PostcodeClassification.test.ts +17 -0
  60. package/classification/PostcodeClassification.ts +14 -0
  61. package/classification/PunctuationClassification.test.ts +17 -0
  62. package/classification/PunctuationClassification.ts +13 -0
  63. package/classification/RegionClassification.test.ts +17 -0
  64. package/classification/RegionClassification.ts +14 -0
  65. package/classification/RoadTypeClassification.test.ts +16 -0
  66. package/classification/RoadTypeClassification.ts +13 -0
  67. package/classification/StartTokenClassification.test.ts +17 -0
  68. package/classification/StartTokenClassification.ts +13 -0
  69. package/classification/StopWordClassification.test.ts +17 -0
  70. package/classification/StopWordClassification.ts +13 -0
  71. package/classification/StreetClassification.test.ts +17 -0
  72. package/classification/StreetClassification.ts +14 -0
  73. package/classification/StreetNameClassification.test.ts +16 -0
  74. package/classification/StreetNameClassification.ts +13 -0
  75. package/classification/StreetPrefixClassification.test.ts +17 -0
  76. package/classification/StreetPrefixClassification.ts +13 -0
  77. package/classification/StreetProperNameClassification.test.ts +17 -0
  78. package/classification/StreetProperNameClassification.ts +13 -0
  79. package/classification/StreetSuffixClassification.test.ts +17 -0
  80. package/classification/StreetSuffixClassification.ts +13 -0
  81. package/classification/SurnameClassification.test.ts +17 -0
  82. package/classification/SurnameClassification.ts +13 -0
  83. package/classification/ToponymClassification.test.ts +17 -0
  84. package/classification/ToponymClassification.ts +13 -0
  85. package/classification/UnitClassification.test.ts +17 -0
  86. package/classification/UnitClassification.ts +12 -0
  87. package/classification/UnitTypeClassification.test.ts +17 -0
  88. package/classification/UnitTypeClassification.ts +12 -0
  89. package/classification/VenueClassification.test.ts +17 -0
  90. package/classification/VenueClassification.ts +14 -0
  91. package/classification/index.ts +47 -0
  92. package/classification/types.ts +100 -0
  93. package/classifier/AdjacencyClassifier.ts +54 -0
  94. package/classifier/AlphaNumericClassifier.test.ts +100 -0
  95. package/classifier/AlphaNumericClassifier.ts +28 -0
  96. package/classifier/CentralEuropeanStreetNameClassifier.test.ts +68 -0
  97. package/classifier/CentralEuropeanStreetNameClassifier.ts +60 -0
  98. package/classifier/ChainClassifier.test.ts +23 -0
  99. package/classifier/ChainClassifier.ts +32 -0
  100. package/classifier/CompositeClassifier.test.ts +79 -0
  101. package/classifier/CompositeClassifier.ts +192 -0
  102. package/classifier/CompoundStreetClassifier.test.ts +57 -0
  103. package/classifier/CompoundStreetClassifier.ts +59 -0
  104. package/classifier/DirectionalClassifier.test.ts +190 -0
  105. package/classifier/DirectionalClassifier.ts +47 -0
  106. package/classifier/GivenNameClassifier.test.ts +32 -0
  107. package/classifier/GivenNameClassifier.ts +40 -0
  108. package/classifier/HouseNumberClassifier.test.ts +164 -0
  109. package/classifier/HouseNumberClassifier.ts +56 -0
  110. package/classifier/IntersectionClassifier.ts +47 -0
  111. package/classifier/LevelClassifier.ts +48 -0
  112. package/classifier/LevelTypeClassifier.test.ts +22 -0
  113. package/classifier/LevelTypeClassifier.ts +32 -0
  114. package/classifier/LevelTypeLevelClassifier.ts +71 -0
  115. package/classifier/MiddleInitialClassifier.test.ts +29 -0
  116. package/classifier/MiddleInitialClassifier.ts +25 -0
  117. package/classifier/OrdinalClassifier.test.ts +44 -0
  118. package/classifier/OrdinalClassifier.ts +34 -0
  119. package/classifier/PersonClassifier.test.ts +40 -0
  120. package/classifier/PersonClassifier.ts +38 -0
  121. package/classifier/PersonalSuffixClassifier.test.ts +32 -0
  122. package/classifier/PersonalSuffixClassifier.ts +36 -0
  123. package/classifier/PersonalTitleClassifier.test.ts +32 -0
  124. package/classifier/PersonalTitleClassifier.ts +44 -0
  125. package/classifier/PlaceClassifier.test.ts +32 -0
  126. package/classifier/PlaceClassifier.ts +46 -0
  127. package/classifier/PostcodeClassifier.test.ts +86 -0
  128. package/classifier/PostcodeClassifier.ts +86 -0
  129. package/classifier/RoadTypeClassifier.test.ts +37 -0
  130. package/classifier/RoadTypeClassifier.ts +43 -0
  131. package/classifier/StopWordClassifier.test.ts +32 -0
  132. package/classifier/StopWordClassifier.ts +44 -0
  133. package/classifier/StreetPrefixClassifier.test.ts +37 -0
  134. package/classifier/StreetPrefixClassifier.ts +58 -0
  135. package/classifier/StreetProperNameClassifier.test.ts +30 -0
  136. package/classifier/StreetProperNameClassifier.ts +38 -0
  137. package/classifier/StreetSuffixClassifier.test.ts +63 -0
  138. package/classifier/StreetSuffixClassifier.ts +77 -0
  139. package/classifier/SurnameClassifier.test.ts +30 -0
  140. package/classifier/SurnameClassifier.ts +41 -0
  141. package/classifier/TokenPositionClassifier.test.ts +95 -0
  142. package/classifier/TokenPositionClassifier.ts +57 -0
  143. package/classifier/ToponymClassifier.test.ts +36 -0
  144. package/classifier/ToponymClassifier.ts +39 -0
  145. package/classifier/UnitClassifier.test.ts +93 -0
  146. package/classifier/UnitClassifier.ts +67 -0
  147. package/classifier/UnitTypeClassifier.test.ts +22 -0
  148. package/classifier/UnitTypeClassifier.ts +32 -0
  149. package/classifier/UnitTypeUnitClassifier.test.ts +49 -0
  150. package/classifier/UnitTypeUnitClassifier.ts +71 -0
  151. package/classifier/WhosOnFirstClassifier.test.ts +38 -0
  152. package/classifier/WhosOnFirstClassifier.ts +190 -0
  153. package/classifier/index.ts +38 -0
  154. package/classifier/scheme/intersection.ts +125 -0
  155. package/classifier/scheme/person.ts +117 -0
  156. package/classifier/scheme/street.ts +409 -0
  157. package/classifier/scheme/street_name.ts +86 -0
  158. package/classifier/scheme/venue.ts +206 -0
  159. package/classifier/super/BaseClassifier.ts +39 -0
  160. package/classifier/super/PhraseClassifier.ts +37 -0
  161. package/classifier/super/SectionClassifier.ts +42 -0
  162. package/classifier/super/WordClassifier.ts +31 -0
  163. package/classifier/super/index.ts +10 -0
  164. package/debug/DebugOutputBuilder.ts +219 -0
  165. package/docker-compose.yml +8 -0
  166. package/docs/api.png +0 -0
  167. package/docs/cli.png +0 -0
  168. package/docs/demo.png +0 -0
  169. package/eslint.config.mjs +32 -0
  170. package/index.ts +10 -0
  171. package/out/bin/cli.js +41 -0
  172. package/package.json +130 -0
  173. package/parser/AddressParser.ts +162 -0
  174. package/parser/Parser.ts +125 -0
  175. package/parser/index.ts +9 -0
  176. package/parser/utils.ts +94 -0
  177. package/resources/chromium-i18n/ssl-address/AC.json +8 -0
  178. package/resources/chromium-i18n/ssl-address/AD.json +16 -0
  179. package/resources/chromium-i18n/ssl-address/AE.json +15 -0
  180. package/resources/chromium-i18n/ssl-address/AF.json +8 -0
  181. package/resources/chromium-i18n/ssl-address/AG.json +1 -0
  182. package/resources/chromium-i18n/ssl-address/AI.json +8 -0
  183. package/resources/chromium-i18n/ssl-address/AL.json +8 -0
  184. package/resources/chromium-i18n/ssl-address/AM.json +16 -0
  185. package/resources/chromium-i18n/ssl-address/AO.json +1 -0
  186. package/resources/chromium-i18n/ssl-address/AQ.json +1 -0
  187. package/resources/chromium-i18n/ssl-address/AR.json +16 -0
  188. package/resources/chromium-i18n/ssl-address/AS.json +13 -0
  189. package/resources/chromium-i18n/ssl-address/AT.json +10 -0
  190. package/resources/chromium-i18n/ssl-address/AU.json +20 -0
  191. package/resources/chromium-i18n/ssl-address/AW.json +1 -0
  192. package/resources/chromium-i18n/ssl-address/AX.json +11 -0
  193. package/resources/chromium-i18n/ssl-address/AZ.json +9 -0
  194. package/resources/chromium-i18n/ssl-address/BA.json +8 -0
  195. package/resources/chromium-i18n/ssl-address/BB.json +9 -0
  196. package/resources/chromium-i18n/ssl-address/BD.json +9 -0
  197. package/resources/chromium-i18n/ssl-address/BE.json +10 -0
  198. package/resources/chromium-i18n/ssl-address/BF.json +6 -0
  199. package/resources/chromium-i18n/ssl-address/BG.json +9 -0
  200. package/resources/chromium-i18n/ssl-address/BH.json +8 -0
  201. package/resources/chromium-i18n/ssl-address/BI.json +1 -0
  202. package/resources/chromium-i18n/ssl-address/BJ.json +1 -0
  203. package/resources/chromium-i18n/ssl-address/BL.json +11 -0
  204. package/resources/chromium-i18n/ssl-address/BM.json +9 -0
  205. package/resources/chromium-i18n/ssl-address/BN.json +9 -0
  206. package/resources/chromium-i18n/ssl-address/BO.json +1 -0
  207. package/resources/chromium-i18n/ssl-address/BQ.json +1 -0
  208. package/resources/chromium-i18n/ssl-address/BR.json +21 -0
  209. package/resources/chromium-i18n/ssl-address/BS.json +12 -0
  210. package/resources/chromium-i18n/ssl-address/BT.json +9 -0
  211. package/resources/chromium-i18n/ssl-address/BV.json +1 -0
  212. package/resources/chromium-i18n/ssl-address/BW.json +1 -0
  213. package/resources/chromium-i18n/ssl-address/BY.json +9 -0
  214. package/resources/chromium-i18n/ssl-address/BZ.json +1 -0
  215. package/resources/chromium-i18n/ssl-address/CA.json +17 -0
  216. package/resources/chromium-i18n/ssl-address/CC.json +9 -0
  217. package/resources/chromium-i18n/ssl-address/CD.json +1 -0
  218. package/resources/chromium-i18n/ssl-address/CF.json +1 -0
  219. package/resources/chromium-i18n/ssl-address/CG.json +1 -0
  220. package/resources/chromium-i18n/ssl-address/CH.json +12 -0
  221. package/resources/chromium-i18n/ssl-address/CI.json +6 -0
  222. package/resources/chromium-i18n/ssl-address/CK.json +1 -0
  223. package/resources/chromium-i18n/ssl-address/CL.json +15 -0
  224. package/resources/chromium-i18n/ssl-address/CM.json +1 -0
  225. package/resources/chromium-i18n/ssl-address/CN.json +22 -0
  226. package/resources/chromium-i18n/ssl-address/CO.json +11 -0
  227. package/resources/chromium-i18n/ssl-address/CR.json +10 -0
  228. package/resources/chromium-i18n/ssl-address/CU.json +12 -0
  229. package/resources/chromium-i18n/ssl-address/CV.json +13 -0
  230. package/resources/chromium-i18n/ssl-address/CW.json +1 -0
  231. package/resources/chromium-i18n/ssl-address/CX.json +9 -0
  232. package/resources/chromium-i18n/ssl-address/CY.json +8 -0
  233. package/resources/chromium-i18n/ssl-address/CZ.json +10 -0
  234. package/resources/chromium-i18n/ssl-address/DE.json +10 -0
  235. package/resources/chromium-i18n/ssl-address/DJ.json +1 -0
  236. package/resources/chromium-i18n/ssl-address/DK.json +10 -0
  237. package/resources/chromium-i18n/ssl-address/DM.json +1 -0
  238. package/resources/chromium-i18n/ssl-address/DO.json +9 -0
  239. package/resources/chromium-i18n/ssl-address/DZ.json +8 -0
  240. package/resources/chromium-i18n/ssl-address/EC.json +10 -0
  241. package/resources/chromium-i18n/ssl-address/EE.json +9 -0
  242. package/resources/chromium-i18n/ssl-address/EG.json +16 -0
  243. package/resources/chromium-i18n/ssl-address/EH.json +8 -0
  244. package/resources/chromium-i18n/ssl-address/ER.json +1 -0
  245. package/resources/chromium-i18n/ssl-address/ES.json +16 -0
  246. package/resources/chromium-i18n/ssl-address/ET.json +8 -0
  247. package/resources/chromium-i18n/ssl-address/FI.json +11 -0
  248. package/resources/chromium-i18n/ssl-address/FJ.json +1 -0
  249. package/resources/chromium-i18n/ssl-address/FK.json +10 -0
  250. package/resources/chromium-i18n/ssl-address/FM.json +13 -0
  251. package/resources/chromium-i18n/ssl-address/FO.json +10 -0
  252. package/resources/chromium-i18n/ssl-address/FR.json +11 -0
  253. package/resources/chromium-i18n/ssl-address/GA.json +1 -0
  254. package/resources/chromium-i18n/ssl-address/GB.json +12 -0
  255. package/resources/chromium-i18n/ssl-address/GD.json +1 -0
  256. package/resources/chromium-i18n/ssl-address/GE.json +9 -0
  257. package/resources/chromium-i18n/ssl-address/GF.json +11 -0
  258. package/resources/chromium-i18n/ssl-address/GG.json +11 -0
  259. package/resources/chromium-i18n/ssl-address/GH.json +1 -0
  260. package/resources/chromium-i18n/ssl-address/GI.json +9 -0
  261. package/resources/chromium-i18n/ssl-address/GL.json +9 -0
  262. package/resources/chromium-i18n/ssl-address/GM.json +1 -0
  263. package/resources/chromium-i18n/ssl-address/GN.json +8 -0
  264. package/resources/chromium-i18n/ssl-address/GP.json +11 -0
  265. package/resources/chromium-i18n/ssl-address/GQ.json +1 -0
  266. package/resources/chromium-i18n/ssl-address/GR.json +10 -0
  267. package/resources/chromium-i18n/ssl-address/GS.json +10 -0
  268. package/resources/chromium-i18n/ssl-address/GT.json +8 -0
  269. package/resources/chromium-i18n/ssl-address/GU.json +12 -0
  270. package/resources/chromium-i18n/ssl-address/GW.json +8 -0
  271. package/resources/chromium-i18n/ssl-address/GY.json +1 -0
  272. package/resources/chromium-i18n/ssl-address/HK.json +16 -0
  273. package/resources/chromium-i18n/ssl-address/HM.json +9 -0
  274. package/resources/chromium-i18n/ssl-address/HN.json +9 -0
  275. package/resources/chromium-i18n/ssl-address/HR.json +10 -0
  276. package/resources/chromium-i18n/ssl-address/HT.json +9 -0
  277. package/resources/chromium-i18n/ssl-address/HU.json +11 -0
  278. package/resources/chromium-i18n/ssl-address/ID.json +13 -0
  279. package/resources/chromium-i18n/ssl-address/IE.json +16 -0
  280. package/resources/chromium-i18n/ssl-address/IL.json +9 -0
  281. package/resources/chromium-i18n/ssl-address/IM.json +11 -0
  282. package/resources/chromium-i18n/ssl-address/IN.json +18 -0
  283. package/resources/chromium-i18n/ssl-address/IO.json +10 -0
  284. package/resources/chromium-i18n/ssl-address/IQ.json +10 -0
  285. package/resources/chromium-i18n/ssl-address/IR.json +14 -0
  286. package/resources/chromium-i18n/ssl-address/IS.json +9 -0
  287. package/resources/chromium-i18n/ssl-address/IT.json +17 -0
  288. package/resources/chromium-i18n/ssl-address/JE.json +11 -0
  289. package/resources/chromium-i18n/ssl-address/JM.json +12 -0
  290. package/resources/chromium-i18n/ssl-address/JO.json +8 -0
  291. package/resources/chromium-i18n/ssl-address/JP.json +19 -0
  292. package/resources/chromium-i18n/ssl-address/KE.json +8 -0
  293. package/resources/chromium-i18n/ssl-address/KG.json +8 -0
  294. package/resources/chromium-i18n/ssl-address/KH.json +8 -0
  295. package/resources/chromium-i18n/ssl-address/KI.json +8 -0
  296. package/resources/chromium-i18n/ssl-address/KM.json +1 -0
  297. package/resources/chromium-i18n/ssl-address/KN.json +12 -0
  298. package/resources/chromium-i18n/ssl-address/KP.json +12 -0
  299. package/resources/chromium-i18n/ssl-address/KR.json +23 -0
  300. package/resources/chromium-i18n/ssl-address/KW.json +8 -0
  301. package/resources/chromium-i18n/ssl-address/KY.json +14 -0
  302. package/resources/chromium-i18n/ssl-address/KZ.json +8 -0
  303. package/resources/chromium-i18n/ssl-address/LA.json +8 -0
  304. package/resources/chromium-i18n/ssl-address/LB.json +8 -0
  305. package/resources/chromium-i18n/ssl-address/LC.json +1 -0
  306. package/resources/chromium-i18n/ssl-address/LI.json +11 -0
  307. package/resources/chromium-i18n/ssl-address/LK.json +9 -0
  308. package/resources/chromium-i18n/ssl-address/LR.json +8 -0
  309. package/resources/chromium-i18n/ssl-address/LS.json +8 -0
  310. package/resources/chromium-i18n/ssl-address/LT.json +10 -0
  311. package/resources/chromium-i18n/ssl-address/LU.json +11 -0
  312. package/resources/chromium-i18n/ssl-address/LV.json +9 -0
  313. package/resources/chromium-i18n/ssl-address/LY.json +1 -0
  314. package/resources/chromium-i18n/ssl-address/MA.json +8 -0
  315. package/resources/chromium-i18n/ssl-address/MC.json +9 -0
  316. package/resources/chromium-i18n/ssl-address/MD.json +9 -0
  317. package/resources/chromium-i18n/ssl-address/ME.json +8 -0
  318. package/resources/chromium-i18n/ssl-address/MF.json +11 -0
  319. package/resources/chromium-i18n/ssl-address/MG.json +8 -0
  320. package/resources/chromium-i18n/ssl-address/MH.json +13 -0
  321. package/resources/chromium-i18n/ssl-address/MK.json +8 -0
  322. package/resources/chromium-i18n/ssl-address/ML.json +1 -0
  323. package/resources/chromium-i18n/ssl-address/MM.json +8 -0
  324. package/resources/chromium-i18n/ssl-address/MN.json +9 -0
  325. package/resources/chromium-i18n/ssl-address/MO.json +8 -0
  326. package/resources/chromium-i18n/ssl-address/MP.json +13 -0
  327. package/resources/chromium-i18n/ssl-address/MQ.json +11 -0
  328. package/resources/chromium-i18n/ssl-address/MR.json +1 -0
  329. package/resources/chromium-i18n/ssl-address/MS.json +1 -0
  330. package/resources/chromium-i18n/ssl-address/MT.json +10 -0
  331. package/resources/chromium-i18n/ssl-address/MU.json +9 -0
  332. package/resources/chromium-i18n/ssl-address/MV.json +9 -0
  333. package/resources/chromium-i18n/ssl-address/MW.json +1 -0
  334. package/resources/chromium-i18n/ssl-address/MX.json +20 -0
  335. package/resources/chromium-i18n/ssl-address/MY.json +19 -0
  336. package/resources/chromium-i18n/ssl-address/MZ.json +12 -0
  337. package/resources/chromium-i18n/ssl-address/NA.json +1 -0
  338. package/resources/chromium-i18n/ssl-address/NC.json +11 -0
  339. package/resources/chromium-i18n/ssl-address/NE.json +8 -0
  340. package/resources/chromium-i18n/ssl-address/NF.json +9 -0
  341. package/resources/chromium-i18n/ssl-address/NG.json +15 -0
  342. package/resources/chromium-i18n/ssl-address/NI.json +16 -0
  343. package/resources/chromium-i18n/ssl-address/NL.json +10 -0
  344. package/resources/chromium-i18n/ssl-address/NO.json +11 -0
  345. package/resources/chromium-i18n/ssl-address/NP.json +9 -0
  346. package/resources/chromium-i18n/ssl-address/NR.json +12 -0
  347. package/resources/chromium-i18n/ssl-address/NU.json +1 -0
  348. package/resources/chromium-i18n/ssl-address/NZ.json +10 -0
  349. package/resources/chromium-i18n/ssl-address/OM.json +8 -0
  350. package/resources/chromium-i18n/ssl-address/PA.json +7 -0
  351. package/resources/chromium-i18n/ssl-address/PE.json +14 -0
  352. package/resources/chromium-i18n/ssl-address/PF.json +11 -0
  353. package/resources/chromium-i18n/ssl-address/PG.json +9 -0
  354. package/resources/chromium-i18n/ssl-address/PH.json +15 -0
  355. package/resources/chromium-i18n/ssl-address/PK.json +9 -0
  356. package/resources/chromium-i18n/ssl-address/PL.json +10 -0
  357. package/resources/chromium-i18n/ssl-address/PM.json +10 -0
  358. package/resources/chromium-i18n/ssl-address/PN.json +10 -0
  359. package/resources/chromium-i18n/ssl-address/PR.json +13 -0
  360. package/resources/chromium-i18n/ssl-address/PS.json +1 -0
  361. package/resources/chromium-i18n/ssl-address/PT.json +10 -0
  362. package/resources/chromium-i18n/ssl-address/PW.json +13 -0
  363. package/resources/chromium-i18n/ssl-address/PY.json +8 -0
  364. package/resources/chromium-i18n/ssl-address/QA.json +1 -0
  365. package/resources/chromium-i18n/ssl-address/RE.json +11 -0
  366. package/resources/chromium-i18n/ssl-address/RO.json +10 -0
  367. package/resources/chromium-i18n/ssl-address/RS.json +9 -0
  368. package/resources/chromium-i18n/ssl-address/RU.json +20 -0
  369. package/resources/chromium-i18n/ssl-address/RW.json +1 -0
  370. package/resources/chromium-i18n/ssl-address/SA.json +8 -0
  371. package/resources/chromium-i18n/ssl-address/SB.json +1 -0
  372. package/resources/chromium-i18n/ssl-address/SC.json +8 -0
  373. package/resources/chromium-i18n/ssl-address/SD.json +9 -0
  374. package/resources/chromium-i18n/ssl-address/SE.json +12 -0
  375. package/resources/chromium-i18n/ssl-address/SG.json +10 -0
  376. package/resources/chromium-i18n/ssl-address/SH.json +10 -0
  377. package/resources/chromium-i18n/ssl-address/SI.json +9 -0
  378. package/resources/chromium-i18n/ssl-address/SJ.json +11 -0
  379. package/resources/chromium-i18n/ssl-address/SK.json +10 -0
  380. package/resources/chromium-i18n/ssl-address/SL.json +1 -0
  381. package/resources/chromium-i18n/ssl-address/SM.json +10 -0
  382. package/resources/chromium-i18n/ssl-address/SN.json +8 -0
  383. package/resources/chromium-i18n/ssl-address/SO.json +15 -0
  384. package/resources/chromium-i18n/ssl-address/SR.json +11 -0
  385. package/resources/chromium-i18n/ssl-address/SS.json +1 -0
  386. package/resources/chromium-i18n/ssl-address/ST.json +1 -0
  387. package/resources/chromium-i18n/ssl-address/SV.json +17 -0
  388. package/resources/chromium-i18n/ssl-address/SX.json +1 -0
  389. package/resources/chromium-i18n/ssl-address/SY.json +6 -0
  390. package/resources/chromium-i18n/ssl-address/SZ.json +10 -0
  391. package/resources/chromium-i18n/ssl-address/TA.json +8 -0
  392. package/resources/chromium-i18n/ssl-address/TC.json +10 -0
  393. package/resources/chromium-i18n/ssl-address/TD.json +1 -0
  394. package/resources/chromium-i18n/ssl-address/TF.json +1 -0
  395. package/resources/chromium-i18n/ssl-address/TG.json +1 -0
  396. package/resources/chromium-i18n/ssl-address/TH.json +16 -0
  397. package/resources/chromium-i18n/ssl-address/TJ.json +8 -0
  398. package/resources/chromium-i18n/ssl-address/TK.json +1 -0
  399. package/resources/chromium-i18n/ssl-address/TL.json +1 -0
  400. package/resources/chromium-i18n/ssl-address/TM.json +8 -0
  401. package/resources/chromium-i18n/ssl-address/TN.json +9 -0
  402. package/resources/chromium-i18n/ssl-address/TO.json +1 -0
  403. package/resources/chromium-i18n/ssl-address/TR.json +16 -0
  404. package/resources/chromium-i18n/ssl-address/TT.json +1 -0
  405. package/resources/chromium-i18n/ssl-address/TV.json +12 -0
  406. package/resources/chromium-i18n/ssl-address/TW.json +20 -0
  407. package/resources/chromium-i18n/ssl-address/TZ.json +8 -0
  408. package/resources/chromium-i18n/ssl-address/UA.json +19 -0
  409. package/resources/chromium-i18n/ssl-address/UG.json +1 -0
  410. package/resources/chromium-i18n/ssl-address/UM.json +13 -0
  411. package/resources/chromium-i18n/ssl-address/US.json +20 -0
  412. package/resources/chromium-i18n/ssl-address/UY.json +15 -0
  413. package/resources/chromium-i18n/ssl-address/UZ.json +10 -0
  414. package/resources/chromium-i18n/ssl-address/VA.json +8 -0
  415. package/resources/chromium-i18n/ssl-address/VC.json +9 -0
  416. package/resources/chromium-i18n/ssl-address/VE.json +16 -0
  417. package/resources/chromium-i18n/ssl-address/VG.json +9 -0
  418. package/resources/chromium-i18n/ssl-address/VI.json +13 -0
  419. package/resources/chromium-i18n/ssl-address/VN.json +15 -0
  420. package/resources/chromium-i18n/ssl-address/VU.json +1 -0
  421. package/resources/chromium-i18n/ssl-address/WF.json +10 -0
  422. package/resources/chromium-i18n/ssl-address/WS.json +1 -0
  423. package/resources/chromium-i18n/ssl-address/XK.json +8 -0
  424. package/resources/chromium-i18n/ssl-address/YE.json +1 -0
  425. package/resources/chromium-i18n/ssl-address/YT.json +10 -0
  426. package/resources/chromium-i18n/ssl-address/ZA.json +10 -0
  427. package/resources/chromium-i18n/ssl-address/ZM.json +8 -0
  428. package/resources/chromium-i18n/ssl-address/ZW.json +1 -0
  429. package/resources/chromium-i18n/ssl-address-download.sh +15 -0
  430. package/resources/chromium-i18n/ssl-address.json +2468 -0
  431. package/resources/custom/custom.ts +12 -0
  432. package/resources/helper.ts +151 -0
  433. package/resources/libpostal/dictionaries/README.md +88 -0
  434. package/resources/libpostal/dictionaries/af/ambiguous_expansions.txt +8 -0
  435. package/resources/libpostal/dictionaries/af/concatenated_suffixes_inseparable.txt +1 -0
  436. package/resources/libpostal/dictionaries/af/concatenated_suffixes_separable.txt +14 -0
  437. package/resources/libpostal/dictionaries/af/directionals.txt +12 -0
  438. package/resources/libpostal/dictionaries/af/personal_titles.txt +23 -0
  439. package/resources/libpostal/dictionaries/af/place_names.txt +2 -0
  440. package/resources/libpostal/dictionaries/af/qualifiers.txt +4 -0
  441. package/resources/libpostal/dictionaries/af/stopwords.txt +38 -0
  442. package/resources/libpostal/dictionaries/af/street_types.txt +21 -0
  443. package/resources/libpostal/dictionaries/all/ambiguous_expansions.txt +1 -0
  444. package/resources/libpostal/dictionaries/all/chains.txt +504 -0
  445. package/resources/libpostal/dictionaries/all/given_names.txt +12715 -0
  446. package/resources/libpostal/dictionaries/all/people.txt +5 -0
  447. package/resources/libpostal/dictionaries/all/surnames.txt +49375 -0
  448. package/resources/libpostal/dictionaries/ar/personal_titles.txt +4 -0
  449. package/resources/libpostal/dictionaries/ar/place_names.txt +1 -0
  450. package/resources/libpostal/dictionaries/ar/street_types.txt +11 -0
  451. package/resources/libpostal/dictionaries/ast/ambiguous_expansions.txt +1 -0
  452. package/resources/libpostal/dictionaries/ast/personal_titles.txt +1 -0
  453. package/resources/libpostal/dictionaries/ast/street_types.txt +3 -0
  454. package/resources/libpostal/dictionaries/az/building_types.txt +1 -0
  455. package/resources/libpostal/dictionaries/az/directionals.txt +8 -0
  456. package/resources/libpostal/dictionaries/az/personal_titles.txt +3 -0
  457. package/resources/libpostal/dictionaries/az/place_names.txt +1 -0
  458. package/resources/libpostal/dictionaries/az/street_types.txt +18 -0
  459. package/resources/libpostal/dictionaries/be/ambiguous_expansions.txt +8 -0
  460. package/resources/libpostal/dictionaries/be/building_types.txt +2 -0
  461. package/resources/libpostal/dictionaries/be/chains.txt +8 -0
  462. package/resources/libpostal/dictionaries/be/directionals.txt +25 -0
  463. package/resources/libpostal/dictionaries/be/house_numbers.txt +2 -0
  464. package/resources/libpostal/dictionaries/be/personal_titles.txt +6 -0
  465. package/resources/libpostal/dictionaries/be/qualifiers.txt +20 -0
  466. package/resources/libpostal/dictionaries/be/street_types.txt +28 -0
  467. package/resources/libpostal/dictionaries/be/unit_types_numbered.txt +2 -0
  468. package/resources/libpostal/dictionaries/bg/ambiguous_expansions.txt +2 -0
  469. package/resources/libpostal/dictionaries/bg/cross_streets.txt +10 -0
  470. package/resources/libpostal/dictionaries/bg/directionals.txt +8 -0
  471. package/resources/libpostal/dictionaries/bg/entrances.txt +2 -0
  472. package/resources/libpostal/dictionaries/bg/level_types_numbered.txt +6 -0
  473. package/resources/libpostal/dictionaries/bg/level_types_standalone.txt +4 -0
  474. package/resources/libpostal/dictionaries/bg/near.txt +20 -0
  475. package/resources/libpostal/dictionaries/bg/number.txt +2 -0
  476. package/resources/libpostal/dictionaries/bg/personal_titles.txt +14 -0
  477. package/resources/libpostal/dictionaries/bg/place_names.txt +6 -0
  478. package/resources/libpostal/dictionaries/bg/post_office.txt +2 -0
  479. package/resources/libpostal/dictionaries/bg/qualifiers.txt +10 -0
  480. package/resources/libpostal/dictionaries/bg/staircases.txt +2 -0
  481. package/resources/libpostal/dictionaries/bg/street_types.txt +6 -0
  482. package/resources/libpostal/dictionaries/bg/unit_directions.txt +4 -0
  483. package/resources/libpostal/dictionaries/bg/unit_types_numbered.txt +6 -0
  484. package/resources/libpostal/dictionaries/br/personal_titles.txt +3 -0
  485. package/resources/libpostal/dictionaries/br/place_names.txt +3 -0
  486. package/resources/libpostal/dictionaries/br/qualifiers.txt +1 -0
  487. package/resources/libpostal/dictionaries/br/stopwords.txt +4 -0
  488. package/resources/libpostal/dictionaries/br/street_types.txt +40 -0
  489. package/resources/libpostal/dictionaries/bs/ambiguous_expansions.txt +5 -0
  490. package/resources/libpostal/dictionaries/bs/building_types.txt +1 -0
  491. package/resources/libpostal/dictionaries/bs/cross_streets.txt +6 -0
  492. package/resources/libpostal/dictionaries/bs/directionals.txt +4 -0
  493. package/resources/libpostal/dictionaries/bs/entrances.txt +1 -0
  494. package/resources/libpostal/dictionaries/bs/level_types_basement.txt +1 -0
  495. package/resources/libpostal/dictionaries/bs/level_types_mezzanine.txt +1 -0
  496. package/resources/libpostal/dictionaries/bs/level_types_numbered.txt +2 -0
  497. package/resources/libpostal/dictionaries/bs/level_types_standalone.txt +2 -0
  498. package/resources/libpostal/dictionaries/bs/near.txt +5 -0
  499. package/resources/libpostal/dictionaries/bs/no_number.txt +1 -0
  500. package/resources/libpostal/dictionaries/bs/number.txt +1 -0
  501. package/resources/libpostal/dictionaries/bs/personal_titles.txt +8 -0
  502. package/resources/libpostal/dictionaries/bs/place_names.txt +9 -0
  503. package/resources/libpostal/dictionaries/bs/post_office.txt +1 -0
  504. package/resources/libpostal/dictionaries/bs/qualifiers.txt +2 -0
  505. package/resources/libpostal/dictionaries/bs/staircases.txt +1 -0
  506. package/resources/libpostal/dictionaries/bs/stopwords.txt +2 -0
  507. package/resources/libpostal/dictionaries/bs/street_types.txt +12 -0
  508. package/resources/libpostal/dictionaries/bs/unit_directions.txt +2 -0
  509. package/resources/libpostal/dictionaries/bs/unit_types_numbered.txt +4 -0
  510. package/resources/libpostal/dictionaries/ca/ambiguous_expansions.txt +9 -0
  511. package/resources/libpostal/dictionaries/ca/cross_streets.txt +8 -0
  512. package/resources/libpostal/dictionaries/ca/directionals.txt +9 -0
  513. package/resources/libpostal/dictionaries/ca/elisions.txt +1 -0
  514. package/resources/libpostal/dictionaries/ca/entrances.txt +1 -0
  515. package/resources/libpostal/dictionaries/ca/given_names.txt +1 -0
  516. package/resources/libpostal/dictionaries/ca/level_types_basement.txt +1 -0
  517. package/resources/libpostal/dictionaries/ca/level_types_mezzanine.txt +1 -0
  518. package/resources/libpostal/dictionaries/ca/level_types_numbered.txt +2 -0
  519. package/resources/libpostal/dictionaries/ca/level_types_standalone.txt +5 -0
  520. package/resources/libpostal/dictionaries/ca/level_types_sub_basement.txt +1 -0
  521. package/resources/libpostal/dictionaries/ca/near.txt +12 -0
  522. package/resources/libpostal/dictionaries/ca/no_number.txt +1 -0
  523. package/resources/libpostal/dictionaries/ca/number.txt +1 -0
  524. package/resources/libpostal/dictionaries/ca/personal_titles.txt +10 -0
  525. package/resources/libpostal/dictionaries/ca/place_names.txt +133 -0
  526. package/resources/libpostal/dictionaries/ca/post_office.txt +1 -0
  527. package/resources/libpostal/dictionaries/ca/postcodes.txt +1 -0
  528. package/resources/libpostal/dictionaries/ca/qualifiers.txt +8 -0
  529. package/resources/libpostal/dictionaries/ca/staircases.txt +1 -0
  530. package/resources/libpostal/dictionaries/ca/stopwords.txt +31 -0
  531. package/resources/libpostal/dictionaries/ca/street_types.txt +28 -0
  532. package/resources/libpostal/dictionaries/ca/synonyms.txt +14 -0
  533. package/resources/libpostal/dictionaries/ca/unit_directions.txt +2 -0
  534. package/resources/libpostal/dictionaries/ca/unit_types_numbered.txt +10 -0
  535. package/resources/libpostal/dictionaries/cs/ambiguous_expansions.txt +6 -0
  536. package/resources/libpostal/dictionaries/cs/chains.txt +1 -0
  537. package/resources/libpostal/dictionaries/cs/cross_streets.txt +9 -0
  538. package/resources/libpostal/dictionaries/cs/directionals.txt +4 -0
  539. package/resources/libpostal/dictionaries/cs/entrances.txt +1 -0
  540. package/resources/libpostal/dictionaries/cs/house_numbers.txt +1 -0
  541. package/resources/libpostal/dictionaries/cs/level_types_basement.txt +1 -0
  542. package/resources/libpostal/dictionaries/cs/level_types_numbered.txt +3 -0
  543. package/resources/libpostal/dictionaries/cs/level_types_standalone.txt +1 -0
  544. package/resources/libpostal/dictionaries/cs/near.txt +12 -0
  545. package/resources/libpostal/dictionaries/cs/number.txt +1 -0
  546. package/resources/libpostal/dictionaries/cs/personal_titles.txt +2 -0
  547. package/resources/libpostal/dictionaries/cs/place_names.txt +47 -0
  548. package/resources/libpostal/dictionaries/cs/post_office.txt +1 -0
  549. package/resources/libpostal/dictionaries/cs/staircases.txt +1 -0
  550. package/resources/libpostal/dictionaries/cs/stopwords.txt +1 -0
  551. package/resources/libpostal/dictionaries/cs/street_types.txt +6 -0
  552. package/resources/libpostal/dictionaries/cs/unit_directions.txt +2 -0
  553. package/resources/libpostal/dictionaries/cs/unit_types_numbered.txt +3 -0
  554. package/resources/libpostal/dictionaries/cy/building_types.txt +5 -0
  555. package/resources/libpostal/dictionaries/cy/directionals.txt +4 -0
  556. package/resources/libpostal/dictionaries/cy/personal_titles.txt +2 -0
  557. package/resources/libpostal/dictionaries/cy/place_names.txt +22 -0
  558. package/resources/libpostal/dictionaries/cy/qualifiers.txt +2 -0
  559. package/resources/libpostal/dictionaries/cy/stopwords.txt +3 -0
  560. package/resources/libpostal/dictionaries/cy/street_types.txt +22 -0
  561. package/resources/libpostal/dictionaries/da/academic_degrees.txt +1 -0
  562. package/resources/libpostal/dictionaries/da/ambiguous_expansions.txt +7 -0
  563. package/resources/libpostal/dictionaries/da/building_types.txt +3 -0
  564. package/resources/libpostal/dictionaries/da/concatenated_suffixes_inseparable.txt +21 -0
  565. package/resources/libpostal/dictionaries/da/concatenated_suffixes_separable.txt +9 -0
  566. package/resources/libpostal/dictionaries/da/cross_streets.txt +5 -0
  567. package/resources/libpostal/dictionaries/da/directionals.txt +13 -0
  568. package/resources/libpostal/dictionaries/da/entrances.txt +1 -0
  569. package/resources/libpostal/dictionaries/da/level_types_basement.txt +1 -0
  570. package/resources/libpostal/dictionaries/da/level_types_numbered.txt +2 -0
  571. package/resources/libpostal/dictionaries/da/level_types_standalone.txt +2 -0
  572. package/resources/libpostal/dictionaries/da/near.txt +14 -0
  573. package/resources/libpostal/dictionaries/da/number.txt +1 -0
  574. package/resources/libpostal/dictionaries/da/personal_titles.txt +1 -0
  575. package/resources/libpostal/dictionaries/da/place_names.txt +7 -0
  576. package/resources/libpostal/dictionaries/da/post_office.txt +2 -0
  577. package/resources/libpostal/dictionaries/da/staircases.txt +2 -0
  578. package/resources/libpostal/dictionaries/da/stopwords.txt +1 -0
  579. package/resources/libpostal/dictionaries/da/street_types.txt +38 -0
  580. package/resources/libpostal/dictionaries/da/synonyms.txt +2 -0
  581. package/resources/libpostal/dictionaries/da/unit_directions.txt +3 -0
  582. package/resources/libpostal/dictionaries/da/unit_types_numbered.txt +2 -0
  583. package/resources/libpostal/dictionaries/de/academic_degrees.txt +5 -0
  584. package/resources/libpostal/dictionaries/de/ambiguous_expansions.txt +18 -0
  585. package/resources/libpostal/dictionaries/de/chains.txt +11 -0
  586. package/resources/libpostal/dictionaries/de/company_types.txt +8 -0
  587. package/resources/libpostal/dictionaries/de/concatenated_prefixes_separable.txt +17 -0
  588. package/resources/libpostal/dictionaries/de/concatenated_suffixes_inseparable.txt +5 -0
  589. package/resources/libpostal/dictionaries/de/concatenated_suffixes_separable.txt +16 -0
  590. package/resources/libpostal/dictionaries/de/cross_streets.txt +5 -0
  591. package/resources/libpostal/dictionaries/de/directionals.txt +41 -0
  592. package/resources/libpostal/dictionaries/de/entrances.txt +1 -0
  593. package/resources/libpostal/dictionaries/de/house_numbers.txt +1 -0
  594. package/resources/libpostal/dictionaries/de/level_types_basement.txt +1 -0
  595. package/resources/libpostal/dictionaries/de/level_types_numbered.txt +3 -0
  596. package/resources/libpostal/dictionaries/de/level_types_standalone.txt +4 -0
  597. package/resources/libpostal/dictionaries/de/near.txt +16 -0
  598. package/resources/libpostal/dictionaries/de/number.txt +1 -0
  599. package/resources/libpostal/dictionaries/de/personal_suffixes.txt +2 -0
  600. package/resources/libpostal/dictionaries/de/personal_titles.txt +18 -0
  601. package/resources/libpostal/dictionaries/de/place_names.txt +123 -0
  602. package/resources/libpostal/dictionaries/de/post_office.txt +1 -0
  603. package/resources/libpostal/dictionaries/de/qualifiers.txt +3 -0
  604. package/resources/libpostal/dictionaries/de/staircases.txt +2 -0
  605. package/resources/libpostal/dictionaries/de/stopwords.txt +39 -0
  606. package/resources/libpostal/dictionaries/de/street_types.txt +36 -0
  607. package/resources/libpostal/dictionaries/de/synonyms.txt +16 -0
  608. package/resources/libpostal/dictionaries/de/toponyms.txt +28 -0
  609. package/resources/libpostal/dictionaries/de/unit_directions.txt +2 -0
  610. package/resources/libpostal/dictionaries/de/unit_types_numbered.txt +7 -0
  611. package/resources/libpostal/dictionaries/el/ambiguous_expansions.txt +1 -0
  612. package/resources/libpostal/dictionaries/el/building_types.txt +2 -0
  613. package/resources/libpostal/dictionaries/el/entrances.txt +2 -0
  614. package/resources/libpostal/dictionaries/el/given_names.txt +6 -0
  615. package/resources/libpostal/dictionaries/el/level_types_basement.txt +2 -0
  616. package/resources/libpostal/dictionaries/el/level_types_mezzanine.txt +2 -0
  617. package/resources/libpostal/dictionaries/el/level_types_numbered.txt +2 -0
  618. package/resources/libpostal/dictionaries/el/level_types_standalone.txt +2 -0
  619. package/resources/libpostal/dictionaries/el/personal_titles.txt +12 -0
  620. package/resources/libpostal/dictionaries/el/place_names.txt +18 -0
  621. package/resources/libpostal/dictionaries/el/post_office.txt +2 -0
  622. package/resources/libpostal/dictionaries/el/postcodes.txt +2 -0
  623. package/resources/libpostal/dictionaries/el/qualifiers.txt +6 -0
  624. package/resources/libpostal/dictionaries/el/staircases.txt +2 -0
  625. package/resources/libpostal/dictionaries/el/street_types.txt +6 -0
  626. package/resources/libpostal/dictionaries/el/synonyms.txt +41 -0
  627. package/resources/libpostal/dictionaries/el/toponyms.txt +3 -0
  628. package/resources/libpostal/dictionaries/el/unit_types_numbered.txt +6 -0
  629. package/resources/libpostal/dictionaries/en/academic_degrees.txt +27 -0
  630. package/resources/libpostal/dictionaries/en/ambiguous_expansions.txt +178 -0
  631. package/resources/libpostal/dictionaries/en/building_types.txt +19 -0
  632. package/resources/libpostal/dictionaries/en/chains.txt +6 -0
  633. package/resources/libpostal/dictionaries/en/company_types.txt +61 -0
  634. package/resources/libpostal/dictionaries/en/cross_streets.txt +9 -0
  635. package/resources/libpostal/dictionaries/en/directionals.txt +20 -0
  636. package/resources/libpostal/dictionaries/en/entrances.txt +1 -0
  637. package/resources/libpostal/dictionaries/en/given_names.txt +2 -0
  638. package/resources/libpostal/dictionaries/en/level_types_basement.txt +1 -0
  639. package/resources/libpostal/dictionaries/en/level_types_mezzanine.txt +5 -0
  640. package/resources/libpostal/dictionaries/en/level_types_numbered.txt +4 -0
  641. package/resources/libpostal/dictionaries/en/level_types_standalone.txt +12 -0
  642. package/resources/libpostal/dictionaries/en/level_types_sub_basement.txt +1 -0
  643. package/resources/libpostal/dictionaries/en/near.txt +7 -0
  644. package/resources/libpostal/dictionaries/en/no_number.txt +1 -0
  645. package/resources/libpostal/dictionaries/en/nulls.txt +2 -0
  646. package/resources/libpostal/dictionaries/en/number.txt +1 -0
  647. package/resources/libpostal/dictionaries/en/personal_suffixes.txt +2 -0
  648. package/resources/libpostal/dictionaries/en/personal_titles.txt +80 -0
  649. package/resources/libpostal/dictionaries/en/place_names.txt +315 -0
  650. package/resources/libpostal/dictionaries/en/post_office.txt +16 -0
  651. package/resources/libpostal/dictionaries/en/qualifiers.txt +5 -0
  652. package/resources/libpostal/dictionaries/en/staircases.txt +3 -0
  653. package/resources/libpostal/dictionaries/en/stopwords.txt +14 -0
  654. package/resources/libpostal/dictionaries/en/street_names.txt +358 -0
  655. package/resources/libpostal/dictionaries/en/street_types.txt +410 -0
  656. package/resources/libpostal/dictionaries/en/synonyms.txt +53 -0
  657. package/resources/libpostal/dictionaries/en/toponyms.txt +80 -0
  658. package/resources/libpostal/dictionaries/en/unit_directions.txt +4 -0
  659. package/resources/libpostal/dictionaries/en/unit_types_numbered.txt +69 -0
  660. package/resources/libpostal/dictionaries/en/unit_types_standalone.txt +16 -0
  661. package/resources/libpostal/dictionaries/es/academic_degrees.txt +2 -0
  662. package/resources/libpostal/dictionaries/es/ambiguous_expansions.txt +45 -0
  663. package/resources/libpostal/dictionaries/es/building_types.txt +15 -0
  664. package/resources/libpostal/dictionaries/es/company_types.txt +49 -0
  665. package/resources/libpostal/dictionaries/es/cross_streets.txt +9 -0
  666. package/resources/libpostal/dictionaries/es/directionals.txt +13 -0
  667. package/resources/libpostal/dictionaries/es/entrances.txt +3 -0
  668. package/resources/libpostal/dictionaries/es/given_names.txt +3 -0
  669. package/resources/libpostal/dictionaries/es/house_numbers.txt +2 -0
  670. package/resources/libpostal/dictionaries/es/level_types_basement.txt +1 -0
  671. package/resources/libpostal/dictionaries/es/level_types_mezzanine.txt +1 -0
  672. package/resources/libpostal/dictionaries/es/level_types_numbered.txt +2 -0
  673. package/resources/libpostal/dictionaries/es/level_types_standalone.txt +7 -0
  674. package/resources/libpostal/dictionaries/es/level_types_sub_basement.txt +1 -0
  675. package/resources/libpostal/dictionaries/es/near.txt +10 -0
  676. package/resources/libpostal/dictionaries/es/no_number.txt +1 -0
  677. package/resources/libpostal/dictionaries/es/number.txt +1 -0
  678. package/resources/libpostal/dictionaries/es/personal_suffixes.txt +1 -0
  679. package/resources/libpostal/dictionaries/es/personal_titles.txt +132 -0
  680. package/resources/libpostal/dictionaries/es/place_names.txt +234 -0
  681. package/resources/libpostal/dictionaries/es/post_office.txt +4 -0
  682. package/resources/libpostal/dictionaries/es/postcodes.txt +1 -0
  683. package/resources/libpostal/dictionaries/es/qualifiers.txt +34 -0
  684. package/resources/libpostal/dictionaries/es/staircases.txt +2 -0
  685. package/resources/libpostal/dictionaries/es/stopwords.txt +29 -0
  686. package/resources/libpostal/dictionaries/es/street_types.txt +109 -0
  687. package/resources/libpostal/dictionaries/es/surnames.txt +6 -0
  688. package/resources/libpostal/dictionaries/es/synonyms.txt +58 -0
  689. package/resources/libpostal/dictionaries/es/toponyms.txt +39 -0
  690. package/resources/libpostal/dictionaries/es/unit_directions.txt +4 -0
  691. package/resources/libpostal/dictionaries/es/unit_types_numbered.txt +15 -0
  692. package/resources/libpostal/dictionaries/es/unit_types_standalone.txt +5 -0
  693. package/resources/libpostal/dictionaries/et/ambiguous_expansions.txt +5 -0
  694. package/resources/libpostal/dictionaries/et/building_types.txt +3 -0
  695. package/resources/libpostal/dictionaries/et/company_types.txt +10 -0
  696. package/resources/libpostal/dictionaries/et/cross_streets.txt +4 -0
  697. package/resources/libpostal/dictionaries/et/directionals.txt +9 -0
  698. package/resources/libpostal/dictionaries/et/entrances.txt +1 -0
  699. package/resources/libpostal/dictionaries/et/level_types_basement.txt +2 -0
  700. package/resources/libpostal/dictionaries/et/level_types_numbered.txt +1 -0
  701. package/resources/libpostal/dictionaries/et/near.txt +4 -0
  702. package/resources/libpostal/dictionaries/et/number.txt +1 -0
  703. package/resources/libpostal/dictionaries/et/personal_titles.txt +13 -0
  704. package/resources/libpostal/dictionaries/et/place_names.txt +39 -0
  705. package/resources/libpostal/dictionaries/et/post_office.txt +2 -0
  706. package/resources/libpostal/dictionaries/et/qualifiers.txt +6 -0
  707. package/resources/libpostal/dictionaries/et/staircases.txt +1 -0
  708. package/resources/libpostal/dictionaries/et/stopwords.txt +1 -0
  709. package/resources/libpostal/dictionaries/et/street_types.txt +10 -0
  710. package/resources/libpostal/dictionaries/et/toponyms.txt +1 -0
  711. package/resources/libpostal/dictionaries/et/unit_directions.txt +4 -0
  712. package/resources/libpostal/dictionaries/et/unit_types_numbered.txt +3 -0
  713. package/resources/libpostal/dictionaries/eu/ambiguous_expansions.txt +2 -0
  714. package/resources/libpostal/dictionaries/eu/cross_streets.txt +4 -0
  715. package/resources/libpostal/dictionaries/eu/entrances.txt +1 -0
  716. package/resources/libpostal/dictionaries/eu/level_types_numbered.txt +1 -0
  717. package/resources/libpostal/dictionaries/eu/level_types_standalone.txt +2 -0
  718. package/resources/libpostal/dictionaries/eu/near.txt +5 -0
  719. package/resources/libpostal/dictionaries/eu/no_number.txt +1 -0
  720. package/resources/libpostal/dictionaries/eu/place_names.txt +63 -0
  721. package/resources/libpostal/dictionaries/eu/post_office.txt +1 -0
  722. package/resources/libpostal/dictionaries/eu/postcodes.txt +1 -0
  723. package/resources/libpostal/dictionaries/eu/qualifiers.txt +2 -0
  724. package/resources/libpostal/dictionaries/eu/staircases.txt +1 -0
  725. package/resources/libpostal/dictionaries/eu/stopwords.txt +1 -0
  726. package/resources/libpostal/dictionaries/eu/street_types.txt +18 -0
  727. package/resources/libpostal/dictionaries/eu/unit_directions.txt +3 -0
  728. package/resources/libpostal/dictionaries/eu/unit_types_numbered.txt +2 -0
  729. package/resources/libpostal/dictionaries/fa/personal_titles.txt +6 -0
  730. package/resources/libpostal/dictionaries/fa/place_names.txt +3 -0
  731. package/resources/libpostal/dictionaries/fa/street_types.txt +7 -0
  732. package/resources/libpostal/dictionaries/fi/ambiguous_expansions.txt +5 -0
  733. package/resources/libpostal/dictionaries/fi/building_types.txt +3 -0
  734. package/resources/libpostal/dictionaries/fi/chains.txt +1 -0
  735. package/resources/libpostal/dictionaries/fi/concatenated_suffixes_separable.txt +20 -0
  736. package/resources/libpostal/dictionaries/fi/cross_streets.txt +3 -0
  737. package/resources/libpostal/dictionaries/fi/directionals.txt +4 -0
  738. package/resources/libpostal/dictionaries/fi/entrances.txt +1 -0
  739. package/resources/libpostal/dictionaries/fi/level_types_numbered.txt +1 -0
  740. package/resources/libpostal/dictionaries/fi/near.txt +5 -0
  741. package/resources/libpostal/dictionaries/fi/number.txt +1 -0
  742. package/resources/libpostal/dictionaries/fi/post_office.txt +1 -0
  743. package/resources/libpostal/dictionaries/fi/qualifiers.txt +2 -0
  744. package/resources/libpostal/dictionaries/fi/staircases.txt +1 -0
  745. package/resources/libpostal/dictionaries/fi/stopwords.txt +1 -0
  746. package/resources/libpostal/dictionaries/fi/street_types.txt +20 -0
  747. package/resources/libpostal/dictionaries/fi/synonyms.txt +1 -0
  748. package/resources/libpostal/dictionaries/fi/unit_directions.txt +4 -0
  749. package/resources/libpostal/dictionaries/fi/unit_types_numbered.txt +2 -0
  750. package/resources/libpostal/dictionaries/fil/street_types.txt +3 -0
  751. package/resources/libpostal/dictionaries/fr/ambiguous_expansions.txt +25 -0
  752. package/resources/libpostal/dictionaries/fr/building_types.txt +4 -0
  753. package/resources/libpostal/dictionaries/fr/chains.txt +2 -0
  754. package/resources/libpostal/dictionaries/fr/company_types.txt +40 -0
  755. package/resources/libpostal/dictionaries/fr/cross_streets.txt +5 -0
  756. package/resources/libpostal/dictionaries/fr/directionals.txt +12 -0
  757. package/resources/libpostal/dictionaries/fr/elisions.txt +9 -0
  758. package/resources/libpostal/dictionaries/fr/entrances.txt +2 -0
  759. package/resources/libpostal/dictionaries/fr/level_types_basement.txt +1 -0
  760. package/resources/libpostal/dictionaries/fr/level_types_mezzanine.txt +1 -0
  761. package/resources/libpostal/dictionaries/fr/level_types_numbered.txt +2 -0
  762. package/resources/libpostal/dictionaries/fr/level_types_standalone.txt +8 -0
  763. package/resources/libpostal/dictionaries/fr/level_types_sub_basement.txt +1 -0
  764. package/resources/libpostal/dictionaries/fr/near.txt +20 -0
  765. package/resources/libpostal/dictionaries/fr/no_number.txt +1 -0
  766. package/resources/libpostal/dictionaries/fr/number.txt +1 -0
  767. package/resources/libpostal/dictionaries/fr/people.txt +1 -0
  768. package/resources/libpostal/dictionaries/fr/personal_titles.txt +57 -0
  769. package/resources/libpostal/dictionaries/fr/place_names.txt +147 -0
  770. package/resources/libpostal/dictionaries/fr/post_office.txt +3 -0
  771. package/resources/libpostal/dictionaries/fr/qualifiers.txt +19 -0
  772. package/resources/libpostal/dictionaries/fr/staircases.txt +1 -0
  773. package/resources/libpostal/dictionaries/fr/stopwords.txt +28 -0
  774. package/resources/libpostal/dictionaries/fr/street_types.txt +165 -0
  775. package/resources/libpostal/dictionaries/fr/synonyms.txt +14 -0
  776. package/resources/libpostal/dictionaries/fr/toponyms.txt +13 -0
  777. package/resources/libpostal/dictionaries/fr/unit_directions.txt +4 -0
  778. package/resources/libpostal/dictionaries/fr/unit_types_numbered.txt +10 -0
  779. package/resources/libpostal/dictionaries/ga/building_types.txt +16 -0
  780. package/resources/libpostal/dictionaries/ga/level_types_standalone.txt +1 -0
  781. package/resources/libpostal/dictionaries/ga/personal_titles.txt +1 -0
  782. package/resources/libpostal/dictionaries/ga/place_names.txt +10 -0
  783. package/resources/libpostal/dictionaries/ga/street_types.txt +95 -0
  784. package/resources/libpostal/dictionaries/ga/unit_types_numbered.txt +1 -0
  785. package/resources/libpostal/dictionaries/gd/building_types.txt +8 -0
  786. package/resources/libpostal/dictionaries/gd/directionals.txt +6 -0
  787. package/resources/libpostal/dictionaries/gd/place_names.txt +7 -0
  788. package/resources/libpostal/dictionaries/gd/qualifiers.txt +1 -0
  789. package/resources/libpostal/dictionaries/gd/stopwords.txt +2 -0
  790. package/resources/libpostal/dictionaries/gd/street_types.txt +52 -0
  791. package/resources/libpostal/dictionaries/gl/ambiguous_expansions.txt +6 -0
  792. package/resources/libpostal/dictionaries/gl/directionals.txt +8 -0
  793. package/resources/libpostal/dictionaries/gl/personal_titles.txt +2 -0
  794. package/resources/libpostal/dictionaries/gl/stopwords.txt +39 -0
  795. package/resources/libpostal/dictionaries/gl/street_types.txt +26 -0
  796. package/resources/libpostal/dictionaries/gl/unit_directions.txt +2 -0
  797. package/resources/libpostal/dictionaries/gsw/ambiguous_expansions.txt +1 -0
  798. package/resources/libpostal/dictionaries/gsw/concatenated_suffixes_separable.txt +8 -0
  799. package/resources/libpostal/dictionaries/gsw/street_types.txt +8 -0
  800. package/resources/libpostal/dictionaries/he/entrances.txt +2 -0
  801. package/resources/libpostal/dictionaries/he/level_types_basement.txt +2 -0
  802. package/resources/libpostal/dictionaries/he/level_types_numbered.txt +2 -0
  803. package/resources/libpostal/dictionaries/he/level_types_standalone.txt +2 -0
  804. package/resources/libpostal/dictionaries/he/personal_titles.txt +2 -0
  805. package/resources/libpostal/dictionaries/he/post_office.txt +2 -0
  806. package/resources/libpostal/dictionaries/he/street_types.txt +8 -0
  807. package/resources/libpostal/dictionaries/he/unit_types_numbered.txt +2 -0
  808. package/resources/libpostal/dictionaries/hi/street_types.txt +3 -0
  809. package/resources/libpostal/dictionaries/hr/ambiguous_expansions.txt +6 -0
  810. package/resources/libpostal/dictionaries/hr/building_types.txt +1 -0
  811. package/resources/libpostal/dictionaries/hr/cross_streets.txt +6 -0
  812. package/resources/libpostal/dictionaries/hr/directionals.txt +4 -0
  813. package/resources/libpostal/dictionaries/hr/entrances.txt +1 -0
  814. package/resources/libpostal/dictionaries/hr/level_types_basement.txt +1 -0
  815. package/resources/libpostal/dictionaries/hr/level_types_mezzanine.txt +1 -0
  816. package/resources/libpostal/dictionaries/hr/level_types_numbered.txt +2 -0
  817. package/resources/libpostal/dictionaries/hr/level_types_standalone.txt +2 -0
  818. package/resources/libpostal/dictionaries/hr/near.txt +5 -0
  819. package/resources/libpostal/dictionaries/hr/no_number.txt +1 -0
  820. package/resources/libpostal/dictionaries/hr/personal_titles.txt +6 -0
  821. package/resources/libpostal/dictionaries/hr/place_names.txt +18 -0
  822. package/resources/libpostal/dictionaries/hr/post_office.txt +1 -0
  823. package/resources/libpostal/dictionaries/hr/qualifiers.txt +1 -0
  824. package/resources/libpostal/dictionaries/hr/staircases.txt +1 -0
  825. package/resources/libpostal/dictionaries/hr/stopwords.txt +1 -0
  826. package/resources/libpostal/dictionaries/hr/street_types.txt +12 -0
  827. package/resources/libpostal/dictionaries/hr/unit_directions.txt +2 -0
  828. package/resources/libpostal/dictionaries/hr/unit_types_numbered.txt +4 -0
  829. package/resources/libpostal/dictionaries/hu/ambiguous_expansions.txt +6 -0
  830. package/resources/libpostal/dictionaries/hu/cross_streets.txt +5 -0
  831. package/resources/libpostal/dictionaries/hu/directionals.txt +8 -0
  832. package/resources/libpostal/dictionaries/hu/level_types_basement.txt +4 -0
  833. package/resources/libpostal/dictionaries/hu/level_types_mezzanine.txt +2 -0
  834. package/resources/libpostal/dictionaries/hu/level_types_numbered.txt +1 -0
  835. package/resources/libpostal/dictionaries/hu/level_types_standalone.txt +1 -0
  836. package/resources/libpostal/dictionaries/hu/near.txt +3 -0
  837. package/resources/libpostal/dictionaries/hu/number.txt +1 -0
  838. package/resources/libpostal/dictionaries/hu/personal_titles.txt +1 -0
  839. package/resources/libpostal/dictionaries/hu/post_office.txt +1 -0
  840. package/resources/libpostal/dictionaries/hu/stopwords.txt +4 -0
  841. package/resources/libpostal/dictionaries/hu/street_types.txt +21 -0
  842. package/resources/libpostal/dictionaries/hu/unit_directions.txt +2 -0
  843. package/resources/libpostal/dictionaries/hu/unit_types_numbered.txt +3 -0
  844. package/resources/libpostal/dictionaries/id/academic_degrees.txt +78 -0
  845. package/resources/libpostal/dictionaries/id/ambiguous_expansions.txt +64 -0
  846. package/resources/libpostal/dictionaries/id/building_types.txt +7 -0
  847. package/resources/libpostal/dictionaries/id/chains.txt +5 -0
  848. package/resources/libpostal/dictionaries/id/company_types.txt +15 -0
  849. package/resources/libpostal/dictionaries/id/cross_streets.txt +6 -0
  850. package/resources/libpostal/dictionaries/id/directionals.txt +9 -0
  851. package/resources/libpostal/dictionaries/id/entrances.txt +3 -0
  852. package/resources/libpostal/dictionaries/id/level_types_numbered.txt +1 -0
  853. package/resources/libpostal/dictionaries/id/level_types_standalone.txt +3 -0
  854. package/resources/libpostal/dictionaries/id/near.txt +3 -0
  855. package/resources/libpostal/dictionaries/id/number.txt +1 -0
  856. package/resources/libpostal/dictionaries/id/personal_titles.txt +34 -0
  857. package/resources/libpostal/dictionaries/id/place_names.txt +145 -0
  858. package/resources/libpostal/dictionaries/id/qualifiers.txt +13 -0
  859. package/resources/libpostal/dictionaries/id/stopwords.txt +9 -0
  860. package/resources/libpostal/dictionaries/id/street_types.txt +7 -0
  861. package/resources/libpostal/dictionaries/id/synonyms.txt +22 -0
  862. package/resources/libpostal/dictionaries/id/toponyms.txt +34 -0
  863. package/resources/libpostal/dictionaries/id/unit_directions.txt +4 -0
  864. package/resources/libpostal/dictionaries/id/unit_types_numbered.txt +16 -0
  865. package/resources/libpostal/dictionaries/id/unit_types_standalone.txt +9 -0
  866. package/resources/libpostal/dictionaries/is/ambiguous_expansions.txt +6 -0
  867. package/resources/libpostal/dictionaries/is/concatenated_suffixes_inseparable.txt +29 -0
  868. package/resources/libpostal/dictionaries/is/cross_streets.txt +4 -0
  869. package/resources/libpostal/dictionaries/is/directionals.txt +4 -0
  870. package/resources/libpostal/dictionaries/is/entrances.txt +1 -0
  871. package/resources/libpostal/dictionaries/is/level_types_basement.txt +1 -0
  872. package/resources/libpostal/dictionaries/is/level_types_numbered.txt +1 -0
  873. package/resources/libpostal/dictionaries/is/level_types_standalone.txt +1 -0
  874. package/resources/libpostal/dictionaries/is/near.txt +6 -0
  875. package/resources/libpostal/dictionaries/is/number.txt +1 -0
  876. package/resources/libpostal/dictionaries/is/post_office.txt +1 -0
  877. package/resources/libpostal/dictionaries/is/qualifiers.txt +2 -0
  878. package/resources/libpostal/dictionaries/is/staircases.txt +1 -0
  879. package/resources/libpostal/dictionaries/is/stopwords.txt +1 -0
  880. package/resources/libpostal/dictionaries/is/street_types.txt +29 -0
  881. package/resources/libpostal/dictionaries/is/unit_directions.txt +2 -0
  882. package/resources/libpostal/dictionaries/is/unit_types_numbered.txt +1 -0
  883. package/resources/libpostal/dictionaries/it/academic_degrees.txt +1 -0
  884. package/resources/libpostal/dictionaries/it/ambiguous_expansions.txt +8 -0
  885. package/resources/libpostal/dictionaries/it/building_types.txt +5 -0
  886. package/resources/libpostal/dictionaries/it/chains.txt +5 -0
  887. package/resources/libpostal/dictionaries/it/company_types.txt +16 -0
  888. package/resources/libpostal/dictionaries/it/cross_streets.txt +7 -0
  889. package/resources/libpostal/dictionaries/it/directionals.txt +11 -0
  890. package/resources/libpostal/dictionaries/it/elisions.txt +4 -0
  891. package/resources/libpostal/dictionaries/it/entrances.txt +1 -0
  892. package/resources/libpostal/dictionaries/it/level_types_basement.txt +2 -0
  893. package/resources/libpostal/dictionaries/it/level_types_numbered.txt +2 -0
  894. package/resources/libpostal/dictionaries/it/level_types_standalone.txt +2 -0
  895. package/resources/libpostal/dictionaries/it/near.txt +10 -0
  896. package/resources/libpostal/dictionaries/it/no_number.txt +2 -0
  897. package/resources/libpostal/dictionaries/it/number.txt +1 -0
  898. package/resources/libpostal/dictionaries/it/personal_titles.txt +72 -0
  899. package/resources/libpostal/dictionaries/it/place_names.txt +203 -0
  900. package/resources/libpostal/dictionaries/it/post_office.txt +2 -0
  901. package/resources/libpostal/dictionaries/it/qualifiers.txt +16 -0
  902. package/resources/libpostal/dictionaries/it/staircases.txt +1 -0
  903. package/resources/libpostal/dictionaries/it/stopwords.txt +47 -0
  904. package/resources/libpostal/dictionaries/it/street_types.txt +151 -0
  905. package/resources/libpostal/dictionaries/it/synonyms.txt +115 -0
  906. package/resources/libpostal/dictionaries/it/toponyms.txt +110 -0
  907. package/resources/libpostal/dictionaries/it/unit_types_numbered.txt +9 -0
  908. package/resources/libpostal/dictionaries/ja/ambiguous_expansions.txt +5 -0
  909. package/resources/libpostal/dictionaries/ja/building_types.txt +6 -0
  910. package/resources/libpostal/dictionaries/ja/chains.txt +27 -0
  911. package/resources/libpostal/dictionaries/ja/directionals.txt +16 -0
  912. package/resources/libpostal/dictionaries/ja/level_types_numbered.txt +3 -0
  913. package/resources/libpostal/dictionaries/ja/number.txt +2 -0
  914. package/resources/libpostal/dictionaries/ja/place_names.txt +16 -0
  915. package/resources/libpostal/dictionaries/ja/post_office.txt +2 -0
  916. package/resources/libpostal/dictionaries/ja/postcodes.txt +2 -0
  917. package/resources/libpostal/dictionaries/ja/qualifiers.txt +38 -0
  918. package/resources/libpostal/dictionaries/ja/street_types.txt +67 -0
  919. package/resources/libpostal/dictionaries/ka/ambiguous_expansions.txt +2 -0
  920. package/resources/libpostal/dictionaries/ka/personal_titles.txt +4 -0
  921. package/resources/libpostal/dictionaries/ka/place_names.txt +7 -0
  922. package/resources/libpostal/dictionaries/ka/stopwords.txt +1 -0
  923. package/resources/libpostal/dictionaries/ka/street_types.txt +12 -0
  924. package/resources/libpostal/dictionaries/ko/directionals.txt +31 -0
  925. package/resources/libpostal/dictionaries/ko/level_types_numbered.txt +2 -0
  926. package/resources/libpostal/dictionaries/ko/number.txt +3 -0
  927. package/resources/libpostal/dictionaries/ko/post_office.txt +2 -0
  928. package/resources/libpostal/dictionaries/ko/postcodes.txt +2 -0
  929. package/resources/libpostal/dictionaries/ko/qualifiers.txt +6 -0
  930. package/resources/libpostal/dictionaries/ko/street_types.txt +8 -0
  931. package/resources/libpostal/dictionaries/lb/concatenated_suffixes_separable.txt +3 -0
  932. package/resources/libpostal/dictionaries/lb/street_types.txt +3 -0
  933. package/resources/libpostal/dictionaries/lt/ambiguous_expansions.txt +6 -0
  934. package/resources/libpostal/dictionaries/lt/building_types.txt +1 -0
  935. package/resources/libpostal/dictionaries/lt/cross_streets.txt +4 -0
  936. package/resources/libpostal/dictionaries/lt/directionals.txt +4 -0
  937. package/resources/libpostal/dictionaries/lt/entrances.txt +1 -0
  938. package/resources/libpostal/dictionaries/lt/level_types_basement.txt +2 -0
  939. package/resources/libpostal/dictionaries/lt/level_types_numbered.txt +2 -0
  940. package/resources/libpostal/dictionaries/lt/level_types_standalone.txt +1 -0
  941. package/resources/libpostal/dictionaries/lt/number.txt +1 -0
  942. package/resources/libpostal/dictionaries/lt/post_office.txt +1 -0
  943. package/resources/libpostal/dictionaries/lt/qualifiers.txt +5 -0
  944. package/resources/libpostal/dictionaries/lt/staircases.txt +1 -0
  945. package/resources/libpostal/dictionaries/lt/stopwords.txt +1 -0
  946. package/resources/libpostal/dictionaries/lt/street_types.txt +7 -0
  947. package/resources/libpostal/dictionaries/lt/unit_directions.txt +2 -0
  948. package/resources/libpostal/dictionaries/lt/unit_types_numbered.txt +3 -0
  949. package/resources/libpostal/dictionaries/lv/ambiguous_expansions.txt +6 -0
  950. package/resources/libpostal/dictionaries/lv/cross_streets.txt +5 -0
  951. package/resources/libpostal/dictionaries/lv/directionals.txt +4 -0
  952. package/resources/libpostal/dictionaries/lv/entrances.txt +1 -0
  953. package/resources/libpostal/dictionaries/lv/level_types_basement.txt +2 -0
  954. package/resources/libpostal/dictionaries/lv/level_types_numbered.txt +1 -0
  955. package/resources/libpostal/dictionaries/lv/level_types_standalone.txt +1 -0
  956. package/resources/libpostal/dictionaries/lv/number.txt +1 -0
  957. package/resources/libpostal/dictionaries/lv/place_names.txt +2 -0
  958. package/resources/libpostal/dictionaries/lv/staircases.txt +2 -0
  959. package/resources/libpostal/dictionaries/lv/stopwords.txt +1 -0
  960. package/resources/libpostal/dictionaries/lv/street_types.txt +5 -0
  961. package/resources/libpostal/dictionaries/lv/unit_directions.txt +2 -0
  962. package/resources/libpostal/dictionaries/lv/unit_types_numbered.txt +3 -0
  963. package/resources/libpostal/dictionaries/ms/ambiguous_expansions.txt +1 -0
  964. package/resources/libpostal/dictionaries/ms/building_types.txt +10 -0
  965. package/resources/libpostal/dictionaries/ms/company_types.txt +8 -0
  966. package/resources/libpostal/dictionaries/ms/directionals.txt +9 -0
  967. package/resources/libpostal/dictionaries/ms/given_names.txt +3 -0
  968. package/resources/libpostal/dictionaries/ms/level_types_numbered.txt +2 -0
  969. package/resources/libpostal/dictionaries/ms/personal_titles.txt +92 -0
  970. package/resources/libpostal/dictionaries/ms/place_names.txt +145 -0
  971. package/resources/libpostal/dictionaries/ms/post_office.txt +3 -0
  972. package/resources/libpostal/dictionaries/ms/qualifiers.txt +6 -0
  973. package/resources/libpostal/dictionaries/ms/stopwords.txt +1 -0
  974. package/resources/libpostal/dictionaries/ms/street_types.txt +35 -0
  975. package/resources/libpostal/dictionaries/ms/synonyms.txt +27 -0
  976. package/resources/libpostal/dictionaries/mt/ambiguous_expansions.txt +1 -0
  977. package/resources/libpostal/dictionaries/mt/number.txt +1 -0
  978. package/resources/libpostal/dictionaries/mt/personal_titles.txt +6 -0
  979. package/resources/libpostal/dictionaries/mt/place_names.txt +1 -0
  980. package/resources/libpostal/dictionaries/mt/stopwords.txt +5 -0
  981. package/resources/libpostal/dictionaries/mt/street_types.txt +6 -0
  982. package/resources/libpostal/dictionaries/nb/ambiguous_expansions.txt +11 -0
  983. package/resources/libpostal/dictionaries/nb/building_types.txt +3 -0
  984. package/resources/libpostal/dictionaries/nb/concatenated_suffixes_inseparable.txt +13 -0
  985. package/resources/libpostal/dictionaries/nb/concatenated_suffixes_separable.txt +6 -0
  986. package/resources/libpostal/dictionaries/nb/cross_streets.txt +5 -0
  987. package/resources/libpostal/dictionaries/nb/directionals.txt +13 -0
  988. package/resources/libpostal/dictionaries/nb/entrances.txt +1 -0
  989. package/resources/libpostal/dictionaries/nb/level_types_numbered.txt +5 -0
  990. package/resources/libpostal/dictionaries/nb/near.txt +7 -0
  991. package/resources/libpostal/dictionaries/nb/number.txt +1 -0
  992. package/resources/libpostal/dictionaries/nb/personal_titles.txt +1 -0
  993. package/resources/libpostal/dictionaries/nb/post_office.txt +1 -0
  994. package/resources/libpostal/dictionaries/nb/staircases.txt +2 -0
  995. package/resources/libpostal/dictionaries/nb/stopwords.txt +34 -0
  996. package/resources/libpostal/dictionaries/nb/street_types.txt +20 -0
  997. package/resources/libpostal/dictionaries/nb/unit_directions.txt +2 -0
  998. package/resources/libpostal/dictionaries/nb/unit_types_numbered.txt +1 -0
  999. package/resources/libpostal/dictionaries/nl/ambiguous_expansions.txt +10 -0
  1000. package/resources/libpostal/dictionaries/nl/building_types.txt +1 -0
  1001. package/resources/libpostal/dictionaries/nl/chains.txt +1 -0
  1002. package/resources/libpostal/dictionaries/nl/concatenated_suffixes_inseparable.txt +3 -0
  1003. package/resources/libpostal/dictionaries/nl/concatenated_suffixes_separable.txt +13 -0
  1004. package/resources/libpostal/dictionaries/nl/cross_streets.txt +4 -0
  1005. package/resources/libpostal/dictionaries/nl/directionals.txt +20 -0
  1006. package/resources/libpostal/dictionaries/nl/entrances.txt +1 -0
  1007. package/resources/libpostal/dictionaries/nl/level_types_numbered.txt +2 -0
  1008. package/resources/libpostal/dictionaries/nl/level_types_standalone.txt +5 -0
  1009. package/resources/libpostal/dictionaries/nl/near.txt +7 -0
  1010. package/resources/libpostal/dictionaries/nl/number.txt +1 -0
  1011. package/resources/libpostal/dictionaries/nl/personal_titles.txt +32 -0
  1012. package/resources/libpostal/dictionaries/nl/place_names.txt +81 -0
  1013. package/resources/libpostal/dictionaries/nl/post_office.txt +1 -0
  1014. package/resources/libpostal/dictionaries/nl/qualifiers.txt +4 -0
  1015. package/resources/libpostal/dictionaries/nl/staircases.txt +2 -0
  1016. package/resources/libpostal/dictionaries/nl/stopwords.txt +38 -0
  1017. package/resources/libpostal/dictionaries/nl/street_types.txt +22 -0
  1018. package/resources/libpostal/dictionaries/nl/synonyms.txt +2 -0
  1019. package/resources/libpostal/dictionaries/nl/unit_directions.txt +2 -0
  1020. package/resources/libpostal/dictionaries/nl/unit_types_numbered.txt +3 -0
  1021. package/resources/libpostal/dictionaries/oc/elisions.txt +1 -0
  1022. package/resources/libpostal/dictionaries/oc/stopwords.txt +14 -0
  1023. package/resources/libpostal/dictionaries/oc/street_types.txt +5 -0
  1024. package/resources/libpostal/dictionaries/pap/personal_titles.txt +2 -0
  1025. package/resources/libpostal/dictionaries/pap/street_types.txt +2 -0
  1026. package/resources/libpostal/dictionaries/pl/academic_degrees.txt +2 -0
  1027. package/resources/libpostal/dictionaries/pl/ambiguous_expansions.txt +9 -0
  1028. package/resources/libpostal/dictionaries/pl/building_types.txt +1 -0
  1029. package/resources/libpostal/dictionaries/pl/chains.txt +3 -0
  1030. package/resources/libpostal/dictionaries/pl/company_types.txt +4 -0
  1031. package/resources/libpostal/dictionaries/pl/cross_streets.txt +6 -0
  1032. package/resources/libpostal/dictionaries/pl/directionals.txt +8 -0
  1033. package/resources/libpostal/dictionaries/pl/entrances.txt +1 -0
  1034. package/resources/libpostal/dictionaries/pl/house_numbers.txt +1 -0
  1035. package/resources/libpostal/dictionaries/pl/level_types_basement.txt +1 -0
  1036. package/resources/libpostal/dictionaries/pl/level_types_numbered.txt +1 -0
  1037. package/resources/libpostal/dictionaries/pl/level_types_standalone.txt +1 -0
  1038. package/resources/libpostal/dictionaries/pl/near.txt +11 -0
  1039. package/resources/libpostal/dictionaries/pl/number.txt +1 -0
  1040. package/resources/libpostal/dictionaries/pl/personal_suffixes.txt +2 -0
  1041. package/resources/libpostal/dictionaries/pl/personal_titles.txt +54 -0
  1042. package/resources/libpostal/dictionaries/pl/place_names.txt +31 -0
  1043. package/resources/libpostal/dictionaries/pl/post_office.txt +1 -0
  1044. package/resources/libpostal/dictionaries/pl/qualifiers.txt +9 -0
  1045. package/resources/libpostal/dictionaries/pl/staircases.txt +1 -0
  1046. package/resources/libpostal/dictionaries/pl/stopwords.txt +3 -0
  1047. package/resources/libpostal/dictionaries/pl/street_types.txt +12 -0
  1048. package/resources/libpostal/dictionaries/pl/synonyms.txt +19 -0
  1049. package/resources/libpostal/dictionaries/pl/toponyms.txt +1 -0
  1050. package/resources/libpostal/dictionaries/pl/unit_directions.txt +2 -0
  1051. package/resources/libpostal/dictionaries/pl/unit_types_numbered.txt +2 -0
  1052. package/resources/libpostal/dictionaries/pt/ambiguous_expansions.txt +12 -0
  1053. package/resources/libpostal/dictionaries/pt/building_types.txt +7 -0
  1054. package/resources/libpostal/dictionaries/pt/company_types.txt +31 -0
  1055. package/resources/libpostal/dictionaries/pt/cross_streets.txt +8 -0
  1056. package/resources/libpostal/dictionaries/pt/directionals.txt +8 -0
  1057. package/resources/libpostal/dictionaries/pt/elisions.txt +1 -0
  1058. package/resources/libpostal/dictionaries/pt/entrances.txt +1 -0
  1059. package/resources/libpostal/dictionaries/pt/level_types_basement.txt +1 -0
  1060. package/resources/libpostal/dictionaries/pt/level_types_mezzanine.txt +1 -0
  1061. package/resources/libpostal/dictionaries/pt/level_types_numbered.txt +3 -0
  1062. package/resources/libpostal/dictionaries/pt/level_types_standalone.txt +5 -0
  1063. package/resources/libpostal/dictionaries/pt/level_types_sub_basement.txt +1 -0
  1064. package/resources/libpostal/dictionaries/pt/near.txt +13 -0
  1065. package/resources/libpostal/dictionaries/pt/no_number.txt +1 -0
  1066. package/resources/libpostal/dictionaries/pt/number.txt +1 -0
  1067. package/resources/libpostal/dictionaries/pt/personal_suffixes.txt +3 -0
  1068. package/resources/libpostal/dictionaries/pt/personal_titles.txt +101 -0
  1069. package/resources/libpostal/dictionaries/pt/place_names.txt +52 -0
  1070. package/resources/libpostal/dictionaries/pt/post_office.txt +2 -0
  1071. package/resources/libpostal/dictionaries/pt/postcodes.txt +2 -0
  1072. package/resources/libpostal/dictionaries/pt/qualifiers.txt +8 -0
  1073. package/resources/libpostal/dictionaries/pt/staircases.txt +1 -0
  1074. package/resources/libpostal/dictionaries/pt/stopwords.txt +35 -0
  1075. package/resources/libpostal/dictionaries/pt/street_types.txt +53 -0
  1076. package/resources/libpostal/dictionaries/pt/synonyms.txt +21 -0
  1077. package/resources/libpostal/dictionaries/pt/toponyms.txt +28 -0
  1078. package/resources/libpostal/dictionaries/pt/unit_directions.txt +4 -0
  1079. package/resources/libpostal/dictionaries/pt/unit_types_numbered.txt +10 -0
  1080. package/resources/libpostal/dictionaries/pt/unit_types_standalone.txt +1 -0
  1081. package/resources/libpostal/dictionaries/ro/ambiguous_expansions.txt +5 -0
  1082. package/resources/libpostal/dictionaries/ro/cross_streets.txt +5 -0
  1083. package/resources/libpostal/dictionaries/ro/directionals.txt +4 -0
  1084. package/resources/libpostal/dictionaries/ro/entrances.txt +1 -0
  1085. package/resources/libpostal/dictionaries/ro/level_types_numbered.txt +1 -0
  1086. package/resources/libpostal/dictionaries/ro/level_types_standalone.txt +1 -0
  1087. package/resources/libpostal/dictionaries/ro/near.txt +7 -0
  1088. package/resources/libpostal/dictionaries/ro/no_number.txt +1 -0
  1089. package/resources/libpostal/dictionaries/ro/number.txt +1 -0
  1090. package/resources/libpostal/dictionaries/ro/personal_titles.txt +14 -0
  1091. package/resources/libpostal/dictionaries/ro/post_office.txt +1 -0
  1092. package/resources/libpostal/dictionaries/ro/qualifiers.txt +1 -0
  1093. package/resources/libpostal/dictionaries/ro/staircases.txt +1 -0
  1094. package/resources/libpostal/dictionaries/ro/stopwords.txt +2 -0
  1095. package/resources/libpostal/dictionaries/ro/street_types.txt +13 -0
  1096. package/resources/libpostal/dictionaries/ro/unit_types_numbered.txt +4 -0
  1097. package/resources/libpostal/dictionaries/ru/ambiguous_expansions.txt +18 -0
  1098. package/resources/libpostal/dictionaries/ru/building_types.txt +2 -0
  1099. package/resources/libpostal/dictionaries/ru/chains.txt +42 -0
  1100. package/resources/libpostal/dictionaries/ru/company_types.txt +9 -0
  1101. package/resources/libpostal/dictionaries/ru/cross_streets.txt +11 -0
  1102. package/resources/libpostal/dictionaries/ru/directionals.txt +16 -0
  1103. package/resources/libpostal/dictionaries/ru/entrances.txt +2 -0
  1104. package/resources/libpostal/dictionaries/ru/house_numbers.txt +2 -0
  1105. package/resources/libpostal/dictionaries/ru/level_types_basement.txt +4 -0
  1106. package/resources/libpostal/dictionaries/ru/level_types_numbered.txt +4 -0
  1107. package/resources/libpostal/dictionaries/ru/level_types_standalone.txt +4 -0
  1108. package/resources/libpostal/dictionaries/ru/near.txt +26 -0
  1109. package/resources/libpostal/dictionaries/ru/no_number.txt +1 -0
  1110. package/resources/libpostal/dictionaries/ru/number.txt +2 -0
  1111. package/resources/libpostal/dictionaries/ru/personal_titles.txt +6 -0
  1112. package/resources/libpostal/dictionaries/ru/place_names.txt +160 -0
  1113. package/resources/libpostal/dictionaries/ru/post_office.txt +2 -0
  1114. package/resources/libpostal/dictionaries/ru/qualifiers.txt +31 -0
  1115. package/resources/libpostal/dictionaries/ru/staircases.txt +2 -0
  1116. package/resources/libpostal/dictionaries/ru/stopwords.txt +1 -0
  1117. package/resources/libpostal/dictionaries/ru/street_types.txt +28 -0
  1118. package/resources/libpostal/dictionaries/ru/unit_directions.txt +4 -0
  1119. package/resources/libpostal/dictionaries/ru/unit_types_numbered.txt +10 -0
  1120. package/resources/libpostal/dictionaries/si/place_names.txt +8 -0
  1121. package/resources/libpostal/dictionaries/si/qualifiers.txt +4 -0
  1122. package/resources/libpostal/dictionaries/si/street_types.txt +2 -0
  1123. package/resources/libpostal/dictionaries/sk/ambiguous_expansions.txt +6 -0
  1124. package/resources/libpostal/dictionaries/sk/cross_streets.txt +8 -0
  1125. package/resources/libpostal/dictionaries/sk/directionals.txt +21 -0
  1126. package/resources/libpostal/dictionaries/sk/entrances.txt +1 -0
  1127. package/resources/libpostal/dictionaries/sk/house_numbers.txt +1 -0
  1128. package/resources/libpostal/dictionaries/sk/level_types_basement.txt +1 -0
  1129. package/resources/libpostal/dictionaries/sk/level_types_numbered.txt +4 -0
  1130. package/resources/libpostal/dictionaries/sk/level_types_standalone.txt +1 -0
  1131. package/resources/libpostal/dictionaries/sk/near.txt +13 -0
  1132. package/resources/libpostal/dictionaries/sk/number.txt +1 -0
  1133. package/resources/libpostal/dictionaries/sk/personal_titles.txt +16 -0
  1134. package/resources/libpostal/dictionaries/sk/place_names.txt +28 -0
  1135. package/resources/libpostal/dictionaries/sk/post_office.txt +1 -0
  1136. package/resources/libpostal/dictionaries/sk/qualifiers.txt +3 -0
  1137. package/resources/libpostal/dictionaries/sk/staircases.txt +1 -0
  1138. package/resources/libpostal/dictionaries/sk/stopwords.txt +29 -0
  1139. package/resources/libpostal/dictionaries/sk/street_types.txt +20 -0
  1140. package/resources/libpostal/dictionaries/sk/toponyms.txt +1 -0
  1141. package/resources/libpostal/dictionaries/sk/unit_directions.txt +2 -0
  1142. package/resources/libpostal/dictionaries/sk/unit_types_numbered.txt +3 -0
  1143. package/resources/libpostal/dictionaries/sl/ambiguous_expansions.txt +6 -0
  1144. package/resources/libpostal/dictionaries/sl/chains.txt +1 -0
  1145. package/resources/libpostal/dictionaries/sl/cross_streets.txt +5 -0
  1146. package/resources/libpostal/dictionaries/sl/directionals.txt +4 -0
  1147. package/resources/libpostal/dictionaries/sl/entrances.txt +1 -0
  1148. package/resources/libpostal/dictionaries/sl/level_types_basement.txt +1 -0
  1149. package/resources/libpostal/dictionaries/sl/level_types_numbered.txt +1 -0
  1150. package/resources/libpostal/dictionaries/sl/level_types_standalone.txt +2 -0
  1151. package/resources/libpostal/dictionaries/sl/near.txt +7 -0
  1152. package/resources/libpostal/dictionaries/sl/no_number.txt +1 -0
  1153. package/resources/libpostal/dictionaries/sl/number.txt +1 -0
  1154. package/resources/libpostal/dictionaries/sl/personal_titles.txt +3 -0
  1155. package/resources/libpostal/dictionaries/sl/place_names.txt +1 -0
  1156. package/resources/libpostal/dictionaries/sl/post_office.txt +1 -0
  1157. package/resources/libpostal/dictionaries/sl/staircases.txt +1 -0
  1158. package/resources/libpostal/dictionaries/sl/stopwords.txt +7 -0
  1159. package/resources/libpostal/dictionaries/sl/street_types.txt +4 -0
  1160. package/resources/libpostal/dictionaries/sl/synonyms.txt +13 -0
  1161. package/resources/libpostal/dictionaries/sl/unit_directions.txt +2 -0
  1162. package/resources/libpostal/dictionaries/sl/unit_types_numbered.txt +3 -0
  1163. package/resources/libpostal/dictionaries/sr/ambiguous_expansions.txt +9 -0
  1164. package/resources/libpostal/dictionaries/sr/cross_streets.txt +10 -0
  1165. package/resources/libpostal/dictionaries/sr/directionals.txt +8 -0
  1166. package/resources/libpostal/dictionaries/sr/entrances.txt +2 -0
  1167. package/resources/libpostal/dictionaries/sr/level_types_basement.txt +2 -0
  1168. package/resources/libpostal/dictionaries/sr/level_types_numbered.txt +6 -0
  1169. package/resources/libpostal/dictionaries/sr/level_types_standalone.txt +4 -0
  1170. package/resources/libpostal/dictionaries/sr/number.txt +2 -0
  1171. package/resources/libpostal/dictionaries/sr/personal_titles.txt +14 -0
  1172. package/resources/libpostal/dictionaries/sr/place_names.txt +12 -0
  1173. package/resources/libpostal/dictionaries/sr/post_office.txt +6 -0
  1174. package/resources/libpostal/dictionaries/sr/staircases.txt +2 -0
  1175. package/resources/libpostal/dictionaries/sr/stopwords.txt +2 -0
  1176. package/resources/libpostal/dictionaries/sr/street_types.txt +17 -0
  1177. package/resources/libpostal/dictionaries/sr/unit_directions.txt +4 -0
  1178. package/resources/libpostal/dictionaries/sr/unit_types_numbered.txt +8 -0
  1179. package/resources/libpostal/dictionaries/sv/ambiguous_expansions.txt +9 -0
  1180. package/resources/libpostal/dictionaries/sv/company_types.txt +4 -0
  1181. package/resources/libpostal/dictionaries/sv/concatenated_suffixes_inseparable.txt +5 -0
  1182. package/resources/libpostal/dictionaries/sv/concatenated_suffixes_separable.txt +8 -0
  1183. package/resources/libpostal/dictionaries/sv/cross_streets.txt +5 -0
  1184. package/resources/libpostal/dictionaries/sv/directionals.txt +8 -0
  1185. package/resources/libpostal/dictionaries/sv/entrances.txt +2 -0
  1186. package/resources/libpostal/dictionaries/sv/level_types_numbered.txt +7 -0
  1187. package/resources/libpostal/dictionaries/sv/level_types_standalone.txt +5 -0
  1188. package/resources/libpostal/dictionaries/sv/near.txt +11 -0
  1189. package/resources/libpostal/dictionaries/sv/number.txt +1 -0
  1190. package/resources/libpostal/dictionaries/sv/personal_titles.txt +3 -0
  1191. package/resources/libpostal/dictionaries/sv/post_office.txt +2 -0
  1192. package/resources/libpostal/dictionaries/sv/staircases.txt +3 -0
  1193. package/resources/libpostal/dictionaries/sv/stopwords.txt +25 -0
  1194. package/resources/libpostal/dictionaries/sv/street_types.txt +13 -0
  1195. package/resources/libpostal/dictionaries/sv/synonyms.txt +4 -0
  1196. package/resources/libpostal/dictionaries/sv/unit_directions.txt +4 -0
  1197. package/resources/libpostal/dictionaries/sv/unit_types_numbered.txt +5 -0
  1198. package/resources/libpostal/dictionaries/th/chains.txt +2 -0
  1199. package/resources/libpostal/dictionaries/th/street_types.txt +10 -0
  1200. package/resources/libpostal/dictionaries/tr/ambiguous_expansions.txt +5 -0
  1201. package/resources/libpostal/dictionaries/tr/chains.txt +1 -0
  1202. package/resources/libpostal/dictionaries/tr/cross_streets.txt +4 -0
  1203. package/resources/libpostal/dictionaries/tr/directionals.txt +4 -0
  1204. package/resources/libpostal/dictionaries/tr/entrances.txt +1 -0
  1205. package/resources/libpostal/dictionaries/tr/level_types_basement.txt +1 -0
  1206. package/resources/libpostal/dictionaries/tr/level_types_mezzanine.txt +1 -0
  1207. package/resources/libpostal/dictionaries/tr/level_types_numbered.txt +1 -0
  1208. package/resources/libpostal/dictionaries/tr/level_types_standalone.txt +1 -0
  1209. package/resources/libpostal/dictionaries/tr/number.txt +2 -0
  1210. package/resources/libpostal/dictionaries/tr/personal_titles.txt +4 -0
  1211. package/resources/libpostal/dictionaries/tr/place_names.txt +2 -0
  1212. package/resources/libpostal/dictionaries/tr/post_office.txt +1 -0
  1213. package/resources/libpostal/dictionaries/tr/qualifiers.txt +5 -0
  1214. package/resources/libpostal/dictionaries/tr/staircases.txt +1 -0
  1215. package/resources/libpostal/dictionaries/tr/stopwords.txt +1 -0
  1216. package/resources/libpostal/dictionaries/tr/street_types.txt +10 -0
  1217. package/resources/libpostal/dictionaries/tr/unit_directions.txt +2 -0
  1218. package/resources/libpostal/dictionaries/tr/unit_types_numbered.txt +4 -0
  1219. package/resources/libpostal/dictionaries/uk/ambiguous_expansions.txt +8 -0
  1220. package/resources/libpostal/dictionaries/uk/chains.txt +7 -0
  1221. package/resources/libpostal/dictionaries/uk/cross_streets.txt +10 -0
  1222. package/resources/libpostal/dictionaries/uk/directionals.txt +8 -0
  1223. package/resources/libpostal/dictionaries/uk/entrances.txt +2 -0
  1224. package/resources/libpostal/dictionaries/uk/house_numbers.txt +4 -0
  1225. package/resources/libpostal/dictionaries/uk/level_types_basement.txt +4 -0
  1226. package/resources/libpostal/dictionaries/uk/level_types_numbered.txt +4 -0
  1227. package/resources/libpostal/dictionaries/uk/level_types_standalone.txt +4 -0
  1228. package/resources/libpostal/dictionaries/uk/near.txt +24 -0
  1229. package/resources/libpostal/dictionaries/uk/number.txt +2 -0
  1230. package/resources/libpostal/dictionaries/uk/personal_titles.txt +9 -0
  1231. package/resources/libpostal/dictionaries/uk/place_names.txt +161 -0
  1232. package/resources/libpostal/dictionaries/uk/post_office.txt +2 -0
  1233. package/resources/libpostal/dictionaries/uk/qualifiers.txt +8 -0
  1234. package/resources/libpostal/dictionaries/uk/staircases.txt +2 -0
  1235. package/resources/libpostal/dictionaries/uk/stopwords.txt +2 -0
  1236. package/resources/libpostal/dictionaries/uk/street_types.txt +26 -0
  1237. package/resources/libpostal/dictionaries/uk/unit_directions.txt +4 -0
  1238. package/resources/libpostal/dictionaries/uk/unit_types_numbered.txt +10 -0
  1239. package/resources/libpostal/dictionaries/ur/street_types.txt +7 -0
  1240. package/resources/libpostal/dictionaries/vi/ambiguous_expansions.txt +3 -0
  1241. package/resources/libpostal/dictionaries/vi/personal_titles.txt +1 -0
  1242. package/resources/libpostal/dictionaries/vi/place_names.txt +29 -0
  1243. package/resources/libpostal/dictionaries/vi/qualifiers.txt +5 -0
  1244. package/resources/libpostal/dictionaries/vi/street_types.txt +10 -0
  1245. package/resources/libpostal/dictionaries/zh/building_types.txt +2 -0
  1246. package/resources/libpostal/dictionaries/zh/chains.txt +2 -0
  1247. package/resources/libpostal/dictionaries/zh/directionals.txt +20 -0
  1248. package/resources/libpostal/dictionaries/zh/level_types_numbered.txt +5 -0
  1249. package/resources/libpostal/dictionaries/zh/number.txt +3 -0
  1250. package/resources/libpostal/dictionaries/zh/place_names.txt +2 -0
  1251. package/resources/libpostal/dictionaries/zh/post_office.txt +3 -0
  1252. package/resources/libpostal/dictionaries/zh/postcodes.txt +3 -0
  1253. package/resources/libpostal/dictionaries/zh/qualifiers.txt +19 -0
  1254. package/resources/libpostal/dictionaries/zh/stopwords.txt +2 -0
  1255. package/resources/libpostal/dictionaries/zh/street_types.txt +30 -0
  1256. package/resources/libpostal/dictionaries/zh/unit_types_numbered.txt +2 -0
  1257. package/resources/libpostal/libpostal.test.ts +325 -0
  1258. package/resources/libpostal/libpostal.ts +106 -0
  1259. package/resources/libpostal/resources-download.sh +8 -0
  1260. package/resources/pelias/dictionaries/libpostal/af/personal_titles.txt +2 -0
  1261. package/resources/pelias/dictionaries/libpostal/all/surnames.txt +1 -0
  1262. package/resources/pelias/dictionaries/libpostal/de/concatenated_suffixes_separable.txt +3 -0
  1263. package/resources/pelias/dictionaries/libpostal/de/place_names.txt +1 -0
  1264. package/resources/pelias/dictionaries/libpostal/de/street_types.txt +2 -0
  1265. package/resources/pelias/dictionaries/libpostal/en/place_names.txt +7 -0
  1266. package/resources/pelias/dictionaries/libpostal/en/road_types.txt +18 -0
  1267. package/resources/pelias/dictionaries/libpostal/en/street_names.txt +2 -0
  1268. package/resources/pelias/dictionaries/libpostal/en/street_types.txt +16 -0
  1269. package/resources/pelias/dictionaries/libpostal/en/unit_types_numbered.txt +3 -0
  1270. package/resources/pelias/dictionaries/libpostal/es/street_types.txt +2 -0
  1271. package/resources/pelias/dictionaries/libpostal/fr/personal_titles.txt +4 -0
  1272. package/resources/pelias/dictionaries/libpostal/fr/street_types.txt +5 -0
  1273. package/resources/pelias/dictionaries/libpostal/it/street_types.txt +2 -0
  1274. package/resources/pelias/dictionaries/libpostal/ko/street_types.txt +1 -0
  1275. package/resources/pelias/dictionaries/libpostal/nb/concatenated_suffixes_inseparable.txt +40 -0
  1276. package/resources/pelias/dictionaries/libpostal/nb/directionals.txt +8 -0
  1277. package/resources/pelias/dictionaries/libpostal/nb/street_types.txt +36 -0
  1278. package/resources/pelias/dictionaries/libpostal/nl/concatenated_suffixes_inseparable.txt +1 -0
  1279. package/resources/pelias/dictionaries/libpostal/nl/concatenated_suffixes_separable.txt +8 -0
  1280. package/resources/pelias/dictionaries/libpostal/nl/directionals.txt +4 -0
  1281. package/resources/pelias/dictionaries/libpostal/nl/personal_suffixes.txt +4 -0
  1282. package/resources/pelias/dictionaries/libpostal/nl/personal_titles.txt +43 -0
  1283. package/resources/pelias/dictionaries/libpostal/pl/place_names.txt +1 -0
  1284. package/resources/pelias/dictionaries/libpostal/pl/synonyms.txt +1 -0
  1285. package/resources/pelias/dictionaries/libpostal/sv/concatenated_suffixes_separable.txt +1 -0
  1286. package/resources/pelias/dictionaries/whosonfirst/locality/name:eng_x_preferred.txt +81 -0
  1287. package/resources/pelias/dictionaries/whosonfirst/locality/name:fra_x_preferred.txt +2 -0
  1288. package/resources/pelias/dictionaries/whosonfirst/region/name:eng_x_preferred.txt +2 -0
  1289. package/resources/pelias/pelias.ts +12 -0
  1290. package/resources/whosonfirst/dictionaries/country/name:eng_x_preferred.txt +220 -0
  1291. package/resources/whosonfirst/dictionaries/country/wof:country.txt +215 -0
  1292. package/resources/whosonfirst/dictionaries/country/wof:country_alpha3.txt +216 -0
  1293. package/resources/whosonfirst/dictionaries/dependency/name:eng_x_preferred.txt +42 -0
  1294. package/resources/whosonfirst/dictionaries/dependency/wof:shortcode.txt +34 -0
  1295. package/resources/whosonfirst/dictionaries/locality/name:eng_x_preferred.txt +261365 -0
  1296. package/resources/whosonfirst/dictionaries/locality/name:fra_x_preferred.txt +77631 -0
  1297. package/resources/whosonfirst/dictionaries/region/abrv:eng_x_preferred.txt +441 -0
  1298. package/resources/whosonfirst/dictionaries/region/name:eng_x_preferred.txt +4517 -0
  1299. package/resources/whosonfirst/dictionaries/region/wof:shortcode.txt +839 -0
  1300. package/resources/whosonfirst/generate.ts +135 -0
  1301. package/resources/whosonfirst/placetypes.ts +47 -0
  1302. package/resources/whosonfirst/whosonfirst.ts +79 -0
  1303. package/sdk/repo.ts +66 -0
  1304. package/sdk/test/utils/index.ts +42 -0
  1305. package/server/index.ts +111 -0
  1306. package/server/routes/parse.ts +62 -0
  1307. package/server/static/index.html +279 -0
  1308. package/server/types/locals.d.ts +19 -0
  1309. package/solver/ExclusiveCartesianSolver.ts +74 -0
  1310. package/solver/HouseNumberPositionPenalty.ts +80 -0
  1311. package/solver/InvalidSolutionFilter.ts +34 -0
  1312. package/solver/LeadingAreaDeclassifier.ts +41 -0
  1313. package/solver/MultiStreetSolver.ts +142 -0
  1314. package/solver/MustNotFollowFilter.test.ts +38 -0
  1315. package/solver/MustNotFollowFilter.ts +39 -0
  1316. package/solver/MustNotPreceedFilter.test.ts +38 -0
  1317. package/solver/MustNotPreceedFilter.ts +39 -0
  1318. package/solver/OrphanedLevelTypeDeclassifier.ts +30 -0
  1319. package/solver/OrphanedUnitTypeDeclassifier.test.ts +70 -0
  1320. package/solver/OrphanedUnitTypeDeclassifier.ts +32 -0
  1321. package/solver/PostcodePositionPenalty.ts +49 -0
  1322. package/solver/Solution.test.ts +46 -0
  1323. package/solver/Solution.ts +151 -0
  1324. package/solver/SolutionPair.ts +27 -0
  1325. package/solver/SubsetFilter.test.ts +72 -0
  1326. package/solver/SubsetFilter.ts +33 -0
  1327. package/solver/TokenDistanceFilter.ts +38 -0
  1328. package/solver/super/BaseSolver.ts +13 -0
  1329. package/solver/super/HashMapSolver.ts +91 -0
  1330. package/test/functional/address.aus.test.ts +57 -0
  1331. package/test/functional/address.bra.test.ts +16 -0
  1332. package/test/functional/address.cze.test.ts +88 -0
  1333. package/test/functional/address.deu.test.ts +64 -0
  1334. package/test/functional/address.esp.test.ts +14 -0
  1335. package/test/functional/address.fra.test.ts +89 -0
  1336. package/test/functional/address.gbr.test.ts +19 -0
  1337. package/test/functional/address.hrv.test.ts +9 -0
  1338. package/test/functional/address.ind.test.ts +15 -0
  1339. package/test/functional/address.nld.test.ts +79 -0
  1340. package/test/functional/address.nor.test.ts +25 -0
  1341. package/test/functional/address.nzd.test.ts +63 -0
  1342. package/test/functional/address.pol.test.ts +23 -0
  1343. package/test/functional/address.prt.test.ts +47 -0
  1344. package/test/functional/address.rom.test.ts +25 -0
  1345. package/test/functional/address.svk.test.ts +14 -0
  1346. package/test/functional/address.swe.test.ts +18 -0
  1347. package/test/functional/address.usa.test.ts +284 -0
  1348. package/test/functional/addressit.aus.test.ts +62 -0
  1349. package/test/functional/addressit.usa.test.ts +117 -0
  1350. package/test/functional/compound_street.test.ts +16 -0
  1351. package/test/functional/functional.test.ts +80 -0
  1352. package/test/functional/intersection.test.ts +410 -0
  1353. package/test/functional/libpostal.test.ts +15 -0
  1354. package/test/functional/place.fra.test.ts +107 -0
  1355. package/test/functional/transit.test.ts +11 -0
  1356. package/test/functional/venue.usa.test.ts +26 -0
  1357. package/test/openaddresses.ts +136 -0
  1358. package/tokenization/FST.test.ts +275 -0
  1359. package/tokenization/FST.ts +163 -0
  1360. package/tokenization/Graph.test.ts +182 -0
  1361. package/tokenization/Graph.ts +96 -0
  1362. package/tokenization/Span.test.ts +320 -0
  1363. package/tokenization/Span.ts +172 -0
  1364. package/tokenization/Tokenizer.test.ts +156 -0
  1365. package/tokenization/Tokenizer.ts +83 -0
  1366. package/tokenization/index.ts +11 -0
  1367. package/tokenization/normalizer.test.ts +61 -0
  1368. package/tokenization/normalizer.ts +38 -0
  1369. package/tokenization/permutate.test.ts +368 -0
  1370. package/tokenization/permutate.ts +97 -0
  1371. package/tokenization/split.test.ts +84 -0
  1372. package/tokenization/split.ts +54 -0
  1373. package/tokenization/split_funcs.ts +45 -0
  1374. package/tokenization/split_funcs_test.ts +38 -0
  1375. package/tsconfig.json +11 -0
@@ -0,0 +1,368 @@
1
+ /**
2
+ * @copyright OpenISP, Inc.
3
+ * @license AGPL-3.0
4
+ * @author Teffen Ellis, et al.
5
+ */
6
+
7
+ import test from "tape"
8
+ import { Span } from "./Span.js"
9
+ import permutate from "./permutate.js"
10
+
11
+ function getSpans(spans: Span[], ...indexes: number[]) {
12
+ return indexes.map((i) => spans[i]!)
13
+ }
14
+
15
+ test("permutate: simple", (t) => {
16
+ const spans = Span.connectSiblings(new Span("SoHo", 0), new Span("New", 5), new Span("York", 9), new Span("USA", 14))
17
+
18
+ // expected permutations
19
+ const perm1 = new Span("SoHo New York USA", 0)
20
+ spans.slice(0, 4).forEach((s) => perm1.graph.add("child", s))
21
+ perm1.graph.add("child:first", spans[0]!)
22
+ perm1.graph.add("child:last", spans[3]!)
23
+
24
+ const perm2 = new Span("SoHo New York", 0)
25
+ spans.slice(0, 3).forEach((s) => perm2.graph.add("child", s))
26
+ perm2.graph.add("child:first", spans[0]!)
27
+ perm2.graph.add("child:last", spans[2]!)
28
+
29
+ const perm3 = new Span("SoHo New", 0)
30
+ spans.slice(0, 2).forEach((s) => perm3.graph.add("child", s))
31
+ perm3.graph.add("child:first", spans[0]!)
32
+ perm3.graph.add("child:last", spans[1]!)
33
+
34
+ const perm4 = new Span("SoHo", 0)
35
+ spans.slice(0, 1).forEach((s) => perm4.graph.add("child", s))
36
+ perm4.graph.add("child:first", spans[0]!)
37
+ perm4.graph.add("child:last", spans[0]!)
38
+
39
+ const perm5 = new Span("New York USA", 5)
40
+ spans.slice(1, 4).forEach((s) => perm5.graph.add("child", s))
41
+ perm5.graph.add("child:first", spans[1]!)
42
+ perm5.graph.add("child:last", spans[3]!)
43
+
44
+ const perm6 = new Span("New York", 5)
45
+ spans.slice(1, 3).forEach((s) => perm6.graph.add("child", s))
46
+ perm6.graph.add("child:first", spans[1]!)
47
+ perm6.graph.add("child:last", spans[2]!)
48
+
49
+ const perm7 = new Span("New", 5)
50
+ spans.slice(1, 2).forEach((s) => perm7.graph.add("child", s))
51
+ perm7.graph.add("child:first", spans[1]!)
52
+ perm7.graph.add("child:last", spans[1]!)
53
+
54
+ const perm8 = new Span("York USA", 9)
55
+ spans.slice(2, 4).forEach((s) => perm8.graph.add("child", s))
56
+ perm8.graph.add("child:first", spans[2]!)
57
+ perm8.graph.add("child:last", spans[3]!)
58
+
59
+ const perm9 = new Span("York", 9)
60
+ spans.slice(2, 3).forEach((s) => perm9.graph.add("child", s))
61
+ perm9.graph.add("child:first", spans[2]!)
62
+ perm9.graph.add("child:last", spans[2]!)
63
+
64
+ const perm10 = new Span("USA", 14)
65
+ spans.slice(3, 4).forEach((s) => perm10.graph.add("child", s))
66
+ perm10.graph.add("child:first", spans[3]!)
67
+ perm10.graph.add("child:last", spans[3]!)
68
+
69
+ const actual = permutate(spans, 1, 6)
70
+ t.deepEquals(actual, [perm1, perm2, perm3, perm4, perm5, perm6, perm7, perm8, perm9, perm10])
71
+ t.end()
72
+ })
73
+
74
+ test("permutate: tokens contain whitespace", (t) => {
75
+ const spans = Span.connectSiblings(new Span("SoHo", 0), new Span("New York", 5), new Span("USA", 14))
76
+
77
+ // expected permutations
78
+ const perm1 = new Span("SoHo New York USA", 0)
79
+ spans.slice(0, 3).forEach((s) => perm1.graph.add("child", s))
80
+ perm1.graph.add("child:first", spans[0]!)
81
+ perm1.graph.add("child:last", spans[2]!)
82
+
83
+ const perm2 = new Span("SoHo New York", 0)
84
+ spans.slice(0, 2).forEach((s) => perm2.graph.add("child", s))
85
+ perm2.graph.add("child:first", spans[0]!)
86
+ perm2.graph.add("child:last", spans[1]!)
87
+
88
+ const perm3 = new Span("SoHo", 0)
89
+ spans.slice(0, 1).forEach((s) => perm3.graph.add("child", s))
90
+ perm3.graph.add("child:first", spans[0]!)
91
+ perm3.graph.add("child:last", spans[0]!)
92
+
93
+ const perm4 = new Span("New York USA", 5)
94
+ spans.slice(1, 3).forEach((s) => perm4.graph.add("child", s))
95
+ perm4.graph.add("child:first", spans[1]!)
96
+ perm4.graph.add("child:last", spans[2]!)
97
+
98
+ const perm5 = new Span("New York", 5)
99
+ spans.slice(1, 2).forEach((s) => perm5.graph.add("child", s))
100
+ perm5.graph.add("child:first", spans[1]!)
101
+ perm5.graph.add("child:last", spans[1]!)
102
+
103
+ const perm6 = new Span("USA", 14)
104
+ spans.slice(2, 3).forEach((s) => perm6.graph.add("child", s))
105
+ perm6.graph.add("child:first", spans[2]!)
106
+ perm6.graph.add("child:last", spans[2]!)
107
+
108
+ const actual = permutate(spans, 1, 6)
109
+ t.deepEquals(actual, [perm1, perm2, perm3, perm4, perm5, perm6])
110
+ t.end()
111
+ })
112
+
113
+ test("permutate: smaller window", (t) => {
114
+ const spans = Span.connectSiblings(new Span("SoHo", 0), new Span("New", 5), new Span("York", 9), new Span("USA", 13))
115
+
116
+ // expected permutations
117
+ const perm1 = new Span("SoHo New", 0)
118
+ spans.slice(0, 2).forEach((s) => perm1.graph.add("child", s))
119
+ perm1.graph.add("child:first", spans[0]!)
120
+ perm1.graph.add("child:last", spans[1]!)
121
+
122
+ const perm2 = new Span("SoHo", 0)
123
+ spans.slice(0, 1).forEach((s) => perm2.graph.add("child", s))
124
+ perm2.graph.add("child:first", spans[0]!)
125
+ perm2.graph.add("child:last", spans[0]!)
126
+
127
+ const perm3 = new Span("New York", 5)
128
+ spans.slice(1, 3).forEach((s) => perm3.graph.add("child", s))
129
+ perm3.graph.add("child:first", spans[1]!)
130
+ perm3.graph.add("child:last", spans[2]!)
131
+
132
+ const perm4 = new Span("New", 5)
133
+ spans.slice(1, 2).forEach((s) => perm4.graph.add("child", s))
134
+ perm4.graph.add("child:first", spans[1]!)
135
+ perm4.graph.add("child:last", spans[1]!)
136
+
137
+ const perm5 = new Span("York USA", 9)
138
+ spans.slice(2, 4).forEach((s) => perm5.graph.add("child", s))
139
+ perm5.graph.add("child:first", spans[2]!)
140
+ perm5.graph.add("child:last", spans[3]!)
141
+
142
+ const perm6 = new Span("York", 9)
143
+ spans.slice(2, 3).forEach((s) => perm6.graph.add("child", s))
144
+ perm6.graph.add("child:first", spans[2]!)
145
+ perm6.graph.add("child:last", spans[2]!)
146
+
147
+ const perm7 = new Span("USA", 13)
148
+ spans.slice(3, 4).forEach((s) => perm7.graph.add("child", s))
149
+ perm7.graph.add("child:first", spans[3]!)
150
+ perm7.graph.add("child:last", spans[3]!)
151
+
152
+ const actual = permutate(spans, 1, 2)
153
+ t.deepEquals(actual, [perm1, perm2, perm3, perm4, perm5, perm6, perm7])
154
+ t.end()
155
+ })
156
+
157
+ test("permutate: start/end values", (t) => {
158
+ // " SoHo New York "
159
+ const span1 = new Span("SoHo", 2)
160
+ span1.end = 6
161
+ const span2 = new Span("New", 11)
162
+ span2.end = 14
163
+ const span3 = new Span("York", 15)
164
+ span3.end = 19
165
+ const spans = Span.connectSiblings(span1, span2, span3)
166
+
167
+ // expected permutations
168
+ const perm1 = new Span("SoHo New York", 2)
169
+ perm1.start = span1.start
170
+ perm1.end = span3.end
171
+ spans.slice(0, 3).forEach((s) => perm1.graph.add("child", s))
172
+ perm1.graph.add("child:first", spans[0]!)
173
+ perm1.graph.add("child:last", spans[2]!)
174
+
175
+ const perm2 = new Span("SoHo New", 2)
176
+ perm2.start = span1.start
177
+ perm2.end = span2.end
178
+ spans.slice(0, 2).forEach((s) => perm2.graph.add("child", s))
179
+ perm2.graph.add("child:first", spans[0]!)
180
+ perm2.graph.add("child:last", spans[1]!)
181
+
182
+ const perm3 = new Span("SoHo", 2)
183
+ perm3.start = span1.start
184
+ perm3.end = span1.end
185
+ spans.slice(0, 1).forEach((s) => perm3.graph.add("child", s))
186
+ perm3.graph.add("child:first", spans[0]!)
187
+ perm3.graph.add("child:last", spans[0]!)
188
+
189
+ const perm4 = new Span("New York", 11)
190
+ perm4.start = span2.start
191
+ perm4.end = span3.end
192
+ spans.slice(1, 3).forEach((s) => perm4.graph.add("child", s))
193
+ perm4.graph.add("child:first", spans[1]!)
194
+ perm4.graph.add("child:last", spans[2]!)
195
+
196
+ const perm5 = new Span("New", 11)
197
+ perm5.start = span2.start
198
+ perm5.end = span2.end
199
+ spans.slice(1, 2).forEach((s) => perm5.graph.add("child", s))
200
+ perm5.graph.add("child:first", spans[1]!)
201
+ perm5.graph.add("child:last", spans[1]!)
202
+
203
+ const perm6 = new Span("York", 15)
204
+ perm6.start = span3.start
205
+ perm6.end = span3.end
206
+
207
+ spans.slice(2, 3).forEach((s) => perm6.graph.add("child", s))
208
+ perm6.graph.add("child:first", spans[2]!)
209
+ perm6.graph.add("child:last", spans[2]!)
210
+
211
+ const actual = permutate(spans, 1, 6)
212
+ t.deepEquals(actual, [perm1, perm2, perm3, perm4, perm5, perm6])
213
+ t.end()
214
+ })
215
+
216
+ test("permutate: relationships", (t) => {
217
+ const span1 = new Span("SoHo", 0)
218
+ const span2 = new Span("New", 5)
219
+ const span3 = new Span("York", 14)
220
+ const spans = Span.connectSiblings(span1, span2, span3)
221
+
222
+ const actual = permutate(spans, 1, 6)
223
+
224
+ // Soho New York
225
+ const perm1 = actual[0]!
226
+
227
+ t.true(perm1.graph.findAll("child").includes(span1))
228
+ t.true(span1.graph.findAll("parent").includes(perm1))
229
+ t.true(perm1.graph.findAll("child").includes(span2))
230
+ t.true(span2.graph.findAll("parent").includes(perm1))
231
+ t.true(perm1.graph.findAll("child").includes(span3))
232
+ t.true(span3.graph.findAll("parent").includes(perm1))
233
+
234
+ // Soho New
235
+ const perm2 = actual[1]!
236
+
237
+ t.true(perm2.graph.findAll("child").includes(span1))
238
+ t.true(span1.graph.findAll("parent").includes(perm2))
239
+ t.true(perm2.graph.findAll("child").includes(span2))
240
+ t.true(span2.graph.findAll("parent").includes(perm2))
241
+
242
+ // Soho
243
+ const perm3 = actual[2]!
244
+ t.true(perm3.graph.findAll("child").includes(span1))
245
+ t.true(span1.graph.findAll("parent").includes(perm3))
246
+
247
+ // New York
248
+ const perm4 = actual[3]!
249
+ t.true(perm4.graph.findAll("child").includes(span2))
250
+ t.true(span2.graph.findAll("parent").includes(perm4))
251
+ t.true(perm4.graph.findAll("child").includes(span3))
252
+ t.true(span3.graph.findAll("parent").includes(perm4))
253
+
254
+ // New
255
+ const perm5 = actual[4]!
256
+ t.true(perm5.graph.findAll("child").includes(span2))
257
+ t.true(span2.graph.findAll("parent").includes(perm5))
258
+
259
+ // York
260
+ const perm6 = actual[5]!
261
+ t.true(perm6.graph.findAll("child").includes(span3))
262
+ t.true(span3.graph.findAll("parent").includes(perm6))
263
+
264
+ t.end()
265
+ })
266
+
267
+ test("permutate: with hyphen", (t) => {
268
+ const spans = Span.connectSiblings(new Span("SoHo", 0), new Span("New-York", 5), new Span("USA", 14))
269
+ spans.push(new Span("New", 5))
270
+ spans.push(new Span("York", 9))
271
+
272
+ // SoHo -> New
273
+ spans[0]!.graph.add("next", spans[3]!)
274
+ // New -> York
275
+ spans[3]!.graph.add("next", spans[4]!)
276
+ // York -> USA
277
+ spans[4]!.graph.add("next", spans[2]!)
278
+
279
+ // expected permutations
280
+ const perm1 = new Span("SoHo New-York USA", 0)
281
+ spans.slice(0, 3).forEach((s) => perm1.graph.add("child", s))
282
+ perm1.graph.add("child:first", spans[0]!)
283
+ perm1.graph.add("child:last", spans[2]!)
284
+
285
+ const perm2 = new Span("SoHo New-York", 0)
286
+ spans.slice(0, 2).forEach((s) => perm2.graph.add("child", s))
287
+ perm2.graph.add("child:first", spans[0]!)
288
+ perm2.graph.add("child:last", spans[1]!)
289
+
290
+ const perm3 = new Span("SoHo New York USA", 0)
291
+ getSpans(spans, 0, 3, 4, 2).forEach((s) => perm3.graph.add("child", s))
292
+ perm3.graph.add("child:first", spans[0]!)
293
+ perm3.graph.add("child:last", spans[2]!)
294
+
295
+ const perm4 = new Span("SoHo New York", 0)
296
+ getSpans(spans, 0, 3, 4).forEach((s) => perm4.graph.add("child", s))
297
+ perm4.graph.add("child:first", spans[0]!)
298
+ perm4.graph.add("child:last", spans[4]!)
299
+
300
+ const perm5 = new Span("SoHo New", 0)
301
+ getSpans(spans, 0, 3).forEach((s) => perm5.graph.add("child", s))
302
+ perm5.graph.add("child:first", spans[0]!)
303
+ perm5.graph.add("child:last", spans[3]!)
304
+
305
+ const perm6 = new Span("SoHo", 0)
306
+ spans.slice(0, 1).forEach((s) => perm6.graph.add("child", s))
307
+ perm6.graph.add("child:first", spans[0]!)
308
+ perm6.graph.add("child:last", spans[0]!)
309
+
310
+ const perm7 = new Span("New-York USA", 5)
311
+ spans.slice(1, 3).forEach((s) => perm7.graph.add("child", s))
312
+ perm7.graph.add("child:first", spans[1]!)
313
+ perm7.graph.add("child:last", spans[2]!)
314
+
315
+ const perm8 = new Span("New-York", 5)
316
+ spans.slice(1, 2).forEach((s) => perm8.graph.add("child", s))
317
+ perm8.graph.add("child:first", spans[1]!)
318
+ perm8.graph.add("child:last", spans[1]!)
319
+
320
+ const perm9 = new Span("USA", 14)
321
+ spans.slice(2, 3).forEach((s) => perm9.graph.add("child", s))
322
+ perm9.graph.add("child:first", spans[2]!)
323
+ perm9.graph.add("child:last", spans[2]!)
324
+
325
+ const perm10 = new Span("New York USA", 5)
326
+ getSpans(spans, 3, 4, 2).forEach((s) => perm10.graph.add("child", s))
327
+ perm10.graph.add("child:first", spans[3]!)
328
+ perm10.graph.add("child:last", spans[2]!)
329
+
330
+ const perm11 = new Span("New York", 5)
331
+ getSpans(spans, 3, 4).forEach((s) => perm11.graph.add("child", s))
332
+ perm11.graph.add("child:first", spans[3]!)
333
+ perm11.graph.add("child:last", spans[4]!)
334
+
335
+ const perm12 = new Span("New", 5)
336
+ spans.slice(3, 4).forEach((s) => perm12.graph.add("child", s))
337
+ perm12.graph.add("child:first", spans[3]!)
338
+ perm12.graph.add("child:last", spans[3]!)
339
+
340
+ const perm13 = new Span("York USA", 9)
341
+ getSpans(spans, 4, 2).forEach((s) => perm13.graph.add("child", s))
342
+ perm13.graph.add("child:first", spans[4]!)
343
+ perm13.graph.add("child:last", spans[2]!)
344
+
345
+ const perm14 = new Span("York", 9)
346
+ spans.slice(4, 5).forEach((s) => perm14.graph.add("child", s))
347
+ perm14.graph.add("child:first", spans[4]!)
348
+ perm14.graph.add("child:last", spans[4]!)
349
+
350
+ const actual = permutate(spans, 1, 10)
351
+ t.deepEquals(actual, [
352
+ perm1,
353
+ perm2,
354
+ perm3,
355
+ perm4,
356
+ perm5,
357
+ perm6,
358
+ perm7,
359
+ perm8,
360
+ perm9,
361
+ perm10,
362
+ perm11,
363
+ perm12,
364
+ perm13,
365
+ perm14,
366
+ ])
367
+ t.end()
368
+ })
@@ -0,0 +1,97 @@
1
+ /**
2
+ * @copyright OpenISP, Inc.
3
+ * @license AGPL-3.0
4
+ * @author Teffen Ellis, et al.
5
+ */
6
+
7
+ import { Span } from "./Span.js"
8
+ const JOIN_CHAR = " "
9
+
10
+ /**
11
+ * Produce all the possible token groups from adjacent input tokens (without reordering tokens)
12
+ *
13
+ * WindowMin: the minimum amount of tokens which can be returned in a single window windowMax: the
14
+ * maximum amount of tokens which can be returned in a single window
15
+ *
16
+ * Note: we should honor word boundary delimiters (such as comma) when creating permutations ported:
17
+ * https://github.com/pelias/placeholder/blob/master/lib/permutations.js
18
+ */
19
+
20
+ function permutateRec(
21
+ prevSpan: Span,
22
+ currentSpan: Span,
23
+ windowCur: number,
24
+ windowMin: number,
25
+ windowMax: number,
26
+ permutations: Span[]
27
+ ) {
28
+ // Stops when the window is reached
29
+ if (windowCur > windowMax) {
30
+ return
31
+ }
32
+ // Create new span base on the previous and the next one
33
+ const span = new Span(prevSpan.body + (prevSpan.body.length > 0 ? JOIN_CHAR : "") + currentSpan.body, prevSpan.start)
34
+ // Add all children from the previous span to the new one, they will have the same ones + the next one
35
+ // Add to all children from the previous span the new span as parent + the next one
36
+ prevSpan.graph.findAll("child").forEach((child) => {
37
+ span.graph.add("child", child)
38
+ child.graph.add("parent", span)
39
+ })
40
+ span.graph.add("child", currentSpan)
41
+ currentSpan.graph.add("parent", span)
42
+
43
+ const isFirst = span.body === currentSpan.body
44
+ const isLast = !currentSpan.graph.findOne("next")
45
+
46
+ // If span is the first one, s is the first child, otherwise we take the first child of the previous span
47
+ if (isFirst) {
48
+ span.graph.add("child:first", currentSpan)
49
+ } else {
50
+ span.graph.add("child:first", prevSpan.graph.findOne("child:first")!)
51
+ }
52
+
53
+ span.graph.add("child:last", currentSpan)
54
+
55
+ if (isFirst) {
56
+ span.start = currentSpan.start
57
+ span.end = currentSpan.end
58
+ } else {
59
+ if (currentSpan.start < span.start) {
60
+ span.start = currentSpan.start
61
+ }
62
+ if (currentSpan.end > span.end) {
63
+ span.end = currentSpan.end
64
+ }
65
+ }
66
+
67
+ // go through the graph recursively, check all next spans
68
+ if (!isLast) {
69
+ currentSpan.graph.findAll("next").forEach((next) => {
70
+ permutateRec(span, next, windowCur + 1, windowMin, windowMax, permutations)
71
+ })
72
+ }
73
+
74
+ if (windowMin <= windowCur) {
75
+ permutations.push(span)
76
+ }
77
+ }
78
+
79
+ /**
80
+ * Produce all the possible token groups from adjacent input tokens (without reordering tokens)
81
+ */
82
+ function permutate(spans: Span[], windowMin: number, windowMax: number): Span[] {
83
+ const permutations: Span[] = []
84
+
85
+ spans.forEach((span) => {
86
+ permutateRec(new Span(), span, 1, windowMin, windowMax, permutations)
87
+ })
88
+ return permutations
89
+ }
90
+
91
+ export default permutate
92
+
93
+ /**
94
+ * Example: ['soho', 'new', 'york', 'usa'] [ ['soho', 'new', 'york', 'usa'], ['soho', 'new',
95
+ * 'york'], ['soho', 'new'], ['soho'], ['new', 'york', 'usa'], ['new', 'york'], ['new'], ['york',
96
+ * 'usa'], ['york'], ['usa'], ]
97
+ */
@@ -0,0 +1,84 @@
1
+ /**
2
+ * @copyright OpenISP, Inc.
3
+ * @license AGPL-3.0
4
+ * @author Teffen Ellis, et al.
5
+ */
6
+
7
+ import deepEqual from "deep-eql"
8
+ import test from "tape"
9
+ import { Span } from "./Span.js"
10
+ import split from "./split.js"
11
+ import * as funcs from "./split_funcs.js"
12
+
13
+ test("boundary: no commas or quotes", (t) => {
14
+ const span = new Span("SoHo New York USA")
15
+ const actual = split(span, funcs.fieldsFuncBoundary)
16
+
17
+ t.deepEquals(actual, [new Span("SoHo New York USA")])
18
+ t.end()
19
+ })
20
+
21
+ test("boundary: commas", (t) => {
22
+ const span = new Span("SoHo,,, New York, USA")
23
+ const actual = split(span, funcs.fieldsFuncBoundary)
24
+
25
+ const token1 = new Span("SoHo", 0)
26
+ const token2 = new Span(" New York", 7)
27
+ const token3 = new Span(" USA", 17)
28
+
29
+ // relationships
30
+ token1.graph.add("next", token2)
31
+ token2.graph.add("prev", token1)
32
+ token2.graph.add("next", token3)
33
+ token3.graph.add("prev", token2)
34
+
35
+ t.true(deepEqual(actual, [token1, token2, token3]))
36
+ t.end()
37
+ })
38
+
39
+ test("boundary: quotes", (t) => {
40
+ const span = new Span('SoHo "New York" USA')
41
+ const actual = split(span, funcs.fieldsFuncBoundary)
42
+
43
+ const token1 = new Span("SoHo ", 0)
44
+ const token2 = new Span("New York", 6)
45
+ const token3 = new Span(" USA", 15)
46
+
47
+ // relationships
48
+ token1.graph.add("next", token2)
49
+ token2.graph.add("prev", token1)
50
+ token2.graph.add("next", token3)
51
+ token3.graph.add("prev", token2)
52
+
53
+ t.true(deepEqual(actual, [token1, token2, token3]))
54
+ t.end()
55
+ })
56
+
57
+ test("whitespace: no whitespace", (t) => {
58
+ const span = new Span("SoHo")
59
+ const actual = split(span, funcs.fieldsFuncWhiteSpace)
60
+
61
+ t.deepEquals(actual, [new Span("SoHo")])
62
+ t.end()
63
+ })
64
+
65
+ test("whitespace: contains whitespace", (t) => {
66
+ const span = new Span("SoHo\t New York \n USA")
67
+ const actual = split(span, funcs.fieldsFuncWhiteSpace)
68
+
69
+ const token1 = new Span("SoHo", 0)
70
+ const token2 = new Span("New", 6)
71
+ const token3 = new Span("York", 10)
72
+ const token4 = new Span("USA", 17)
73
+
74
+ // relationships
75
+ token1.graph.add("next", token2)
76
+ token2.graph.add("prev", token1)
77
+ token2.graph.add("next", token3)
78
+ token3.graph.add("prev", token2)
79
+ token3.graph.add("next", token4)
80
+ token4.graph.add("prev", token3)
81
+
82
+ t.true(deepEqual(actual, [token1, token2, token3, token4]))
83
+ t.end()
84
+ })
@@ -0,0 +1,54 @@
1
+ /**
2
+ * @copyright OpenISP, Inc.
3
+ * @license AGPL-3.0
4
+ * @author Teffen Ellis, et al.
5
+ */
6
+
7
+ import { Span } from "./Span.js"
8
+
9
+ function split(span: Span, f: (char: string) => boolean): Span[] {
10
+ // A span is used to record a slice of s of the form s[start:end].
11
+ // The start index is inclusive and the end index is exclusive.
12
+ const spans = []
13
+
14
+ // Find the field start and end indices.
15
+ let wasField = false
16
+ let fromIndex = 0
17
+
18
+ // Iterate unicode code points in string
19
+ for (let i = 0; i < span.body.length; i++) {
20
+ const char = span.body.charAt(i)
21
+ if (f(char)) {
22
+ if (wasField) {
23
+ spans.push(
24
+ span.graph
25
+ .findAll("child")
26
+ .find((s) => s.start === span.start + fromIndex && s.body === span.body.substring(fromIndex, i)) ||
27
+ new Span(span.body.substring(fromIndex, i), span.start + fromIndex)
28
+ )
29
+ wasField = false
30
+ }
31
+ } else if (!wasField) {
32
+ fromIndex = i
33
+ wasField = true
34
+ }
35
+ }
36
+
37
+ // Last field might end at EOF.
38
+ if (wasField) {
39
+ spans.push(
40
+ span.graph
41
+ .findAll("child")
42
+ .find(
43
+ (s) => s.start === span.start + fromIndex && s.body === span.body.substring(fromIndex, span.body.length)
44
+ ) || new Span(span.body.substring(fromIndex, span.body.length), span.start + fromIndex)
45
+ )
46
+ }
47
+
48
+ // Add siblings to graph
49
+ Span.connectSiblings(...spans)
50
+
51
+ return spans
52
+ }
53
+
54
+ export default split
@@ -0,0 +1,45 @@
1
+ /**
2
+ * @copyright OpenISP, Inc.
3
+ * @license AGPL-3.0
4
+ * @author Teffen Ellis, et al.
5
+ */
6
+
7
+ const whitespace = /^\s$/
8
+ const quotes = '"«»‘’‚‛“”„‟‹›⹂「」『』〝〞〟﹁﹂﹃﹄"'「」'
9
+
10
+ /**
11
+ * Predicate to test if a character is a field boundary
12
+ */
13
+ export function fieldsFuncBoundary(char: string): boolean {
14
+ switch (char) {
15
+ case "\n":
16
+ return true
17
+ case "\t":
18
+ return true
19
+ case ",":
20
+ return true
21
+ default:
22
+ // @todo: this should ideally only work for 'matching pairs' of quotes
23
+ if (quotes.includes(char)) {
24
+ return true
25
+ }
26
+
27
+ return false
28
+ }
29
+ }
30
+
31
+ // test for any unicode whitespace char including newlines and tabs
32
+ // @todo: is this possible in js without using a regex?
33
+ /**
34
+ * Predicate to test if a character is a field whitespace.
35
+ */
36
+ export function fieldsFuncWhiteSpace(char: string): boolean {
37
+ return whitespace.test(char)
38
+ }
39
+
40
+ /**
41
+ * Predicate to test if a character is a hyphen or whitespace.
42
+ */
43
+ export function fieldsFuncHyphenOrWhiteSpace(char: string): boolean {
44
+ return char === "-" || char === "/" || fieldsFuncWhiteSpace(char)
45
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * @copyright OpenISP, Inc.
3
+ * @license AGPL-3.0
4
+ * @author Teffen Ellis, et al.
5
+ */
6
+
7
+ import test from "tape"
8
+ import * as funcs from "./split_funcs.js"
9
+
10
+ test("exports: fieldsFuncBoundary", (t) => {
11
+ t.deepEquals("function", typeof funcs.fieldsFuncBoundary)
12
+ t.deepEquals(1, funcs.fieldsFuncBoundary.length)
13
+ t.end()
14
+ })
15
+ test("exports: fieldsFuncWhiteSpace", (t) => {
16
+ t.deepEquals("function", typeof funcs.fieldsFuncWhiteSpace)
17
+ t.deepEquals(1, funcs.fieldsFuncWhiteSpace.length)
18
+ t.end()
19
+ })
20
+ test("fieldsFuncBoundary", (t) => {
21
+ t.true(funcs.fieldsFuncBoundary(","))
22
+ t.true(funcs.fieldsFuncBoundary("\n"))
23
+ t.true(funcs.fieldsFuncBoundary("\t"))
24
+ t.true(funcs.fieldsFuncBoundary('"'))
25
+ t.false(funcs.fieldsFuncBoundary("A"))
26
+ t.false(funcs.fieldsFuncBoundary("1"))
27
+ t.end()
28
+ })
29
+
30
+ test("fieldsFuncWhiteSpace", (t) => {
31
+ t.true(funcs.fieldsFuncWhiteSpace(" "))
32
+ t.true(funcs.fieldsFuncWhiteSpace("\xa0")) // non-breaking space
33
+ t.true(funcs.fieldsFuncWhiteSpace("\t"))
34
+ t.true(funcs.fieldsFuncWhiteSpace("\n"))
35
+ t.false(funcs.fieldsFuncWhiteSpace("A"))
36
+ t.false(funcs.fieldsFuncWhiteSpace("1"))
37
+ t.end()
38
+ })
package/tsconfig.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "extends": "@sister.software/tsconfig",
3
+ "compilerOptions": {
4
+ "baseUrl": ".",
5
+ "paths": {
6
+ "mailwoman/sdk/repo": ["./src/sdk/repo"]
7
+ }
8
+ },
9
+
10
+ "exclude": ["./out/**/*"]
11
+ }