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.
- package/.dockerignore +19 -0
- package/.editorconfig +19 -0
- package/.husky/pre-commit +2 -0
- package/.prettierignore +29 -0
- package/.vscode/extensions.json +18 -0
- package/.vscode/settings.json +132 -0
- package/Dockerfile +17 -0
- package/LICENSE.md +675 -0
- package/README.md +208 -0
- package/bin/cli.ts +54 -0
- package/classification/AdjacentClassification.test.ts +17 -0
- package/classification/AdjacentClassification.ts +13 -0
- package/classification/AlphaClassification.test.ts +17 -0
- package/classification/AlphaClassification.ts +13 -0
- package/classification/AlphaNumericClassification.test.ts +17 -0
- package/classification/AlphaNumericClassification.ts +13 -0
- package/classification/AreaClassification.test.ts +17 -0
- package/classification/AreaClassification.ts +13 -0
- package/classification/ChainClassification.test.ts +17 -0
- package/classification/ChainClassification.ts +13 -0
- package/classification/Classification.test.ts +17 -0
- package/classification/Classification.ts +107 -0
- package/classification/CountryClassification.test.ts +17 -0
- package/classification/CountryClassification.ts +18 -0
- package/classification/DependencyClassification.test.ts +17 -0
- package/classification/DependencyClassification.ts +14 -0
- package/classification/DirectionalClassification.test.ts +17 -0
- package/classification/DirectionalClassification.ts +13 -0
- package/classification/EndTokenClassification.test.ts +17 -0
- package/classification/EndTokenClassification.ts +13 -0
- package/classification/EndTokenSingleCharacterClassification.test.ts +17 -0
- package/classification/EndTokenSingleCharacterClassification.ts +13 -0
- package/classification/GivenNameClassification.test.ts +17 -0
- package/classification/GivenNameClassification.ts +13 -0
- package/classification/HouseNumberClassification.test.ts +17 -0
- package/classification/HouseNumberClassification.ts +14 -0
- package/classification/IntersectionClassification.test.ts +17 -0
- package/classification/IntersectionClassification.ts +13 -0
- package/classification/LevelClassification.ts +14 -0
- package/classification/LevelTypeClassification.ts +12 -0
- package/classification/LocalityClassification.test.ts +17 -0
- package/classification/LocalityClassification.ts +14 -0
- package/classification/MiddleInitialClassification.test.ts +17 -0
- package/classification/MiddleInitialClassification.ts +13 -0
- package/classification/MultiStreetClassification.test.ts +17 -0
- package/classification/MultiStreetClassification.ts +14 -0
- package/classification/NumericClassification.test.ts +17 -0
- package/classification/NumericClassification.ts +13 -0
- package/classification/OrdinalClassification.test.ts +17 -0
- package/classification/OrdinalClassification.ts +13 -0
- package/classification/PersonClassification.test.ts +17 -0
- package/classification/PersonClassification.ts +13 -0
- package/classification/PersonalSuffixClassification.test.ts +17 -0
- package/classification/PersonalSuffixClassification.ts +13 -0
- package/classification/PersonalTitleClassification.test.ts +17 -0
- package/classification/PersonalTitleClassification.ts +13 -0
- package/classification/PlaceClassification.test.ts +17 -0
- package/classification/PlaceClassification.ts +13 -0
- package/classification/PostcodeClassification.test.ts +17 -0
- package/classification/PostcodeClassification.ts +14 -0
- package/classification/PunctuationClassification.test.ts +17 -0
- package/classification/PunctuationClassification.ts +13 -0
- package/classification/RegionClassification.test.ts +17 -0
- package/classification/RegionClassification.ts +14 -0
- package/classification/RoadTypeClassification.test.ts +16 -0
- package/classification/RoadTypeClassification.ts +13 -0
- package/classification/StartTokenClassification.test.ts +17 -0
- package/classification/StartTokenClassification.ts +13 -0
- package/classification/StopWordClassification.test.ts +17 -0
- package/classification/StopWordClassification.ts +13 -0
- package/classification/StreetClassification.test.ts +17 -0
- package/classification/StreetClassification.ts +14 -0
- package/classification/StreetNameClassification.test.ts +16 -0
- package/classification/StreetNameClassification.ts +13 -0
- package/classification/StreetPrefixClassification.test.ts +17 -0
- package/classification/StreetPrefixClassification.ts +13 -0
- package/classification/StreetProperNameClassification.test.ts +17 -0
- package/classification/StreetProperNameClassification.ts +13 -0
- package/classification/StreetSuffixClassification.test.ts +17 -0
- package/classification/StreetSuffixClassification.ts +13 -0
- package/classification/SurnameClassification.test.ts +17 -0
- package/classification/SurnameClassification.ts +13 -0
- package/classification/ToponymClassification.test.ts +17 -0
- package/classification/ToponymClassification.ts +13 -0
- package/classification/UnitClassification.test.ts +17 -0
- package/classification/UnitClassification.ts +12 -0
- package/classification/UnitTypeClassification.test.ts +17 -0
- package/classification/UnitTypeClassification.ts +12 -0
- package/classification/VenueClassification.test.ts +17 -0
- package/classification/VenueClassification.ts +14 -0
- package/classification/index.ts +47 -0
- package/classification/types.ts +100 -0
- package/classifier/AdjacencyClassifier.ts +54 -0
- package/classifier/AlphaNumericClassifier.test.ts +100 -0
- package/classifier/AlphaNumericClassifier.ts +28 -0
- package/classifier/CentralEuropeanStreetNameClassifier.test.ts +68 -0
- package/classifier/CentralEuropeanStreetNameClassifier.ts +60 -0
- package/classifier/ChainClassifier.test.ts +23 -0
- package/classifier/ChainClassifier.ts +32 -0
- package/classifier/CompositeClassifier.test.ts +79 -0
- package/classifier/CompositeClassifier.ts +192 -0
- package/classifier/CompoundStreetClassifier.test.ts +57 -0
- package/classifier/CompoundStreetClassifier.ts +59 -0
- package/classifier/DirectionalClassifier.test.ts +190 -0
- package/classifier/DirectionalClassifier.ts +47 -0
- package/classifier/GivenNameClassifier.test.ts +32 -0
- package/classifier/GivenNameClassifier.ts +40 -0
- package/classifier/HouseNumberClassifier.test.ts +164 -0
- package/classifier/HouseNumberClassifier.ts +56 -0
- package/classifier/IntersectionClassifier.ts +47 -0
- package/classifier/LevelClassifier.ts +48 -0
- package/classifier/LevelTypeClassifier.test.ts +22 -0
- package/classifier/LevelTypeClassifier.ts +32 -0
- package/classifier/LevelTypeLevelClassifier.ts +71 -0
- package/classifier/MiddleInitialClassifier.test.ts +29 -0
- package/classifier/MiddleInitialClassifier.ts +25 -0
- package/classifier/OrdinalClassifier.test.ts +44 -0
- package/classifier/OrdinalClassifier.ts +34 -0
- package/classifier/PersonClassifier.test.ts +40 -0
- package/classifier/PersonClassifier.ts +38 -0
- package/classifier/PersonalSuffixClassifier.test.ts +32 -0
- package/classifier/PersonalSuffixClassifier.ts +36 -0
- package/classifier/PersonalTitleClassifier.test.ts +32 -0
- package/classifier/PersonalTitleClassifier.ts +44 -0
- package/classifier/PlaceClassifier.test.ts +32 -0
- package/classifier/PlaceClassifier.ts +46 -0
- package/classifier/PostcodeClassifier.test.ts +86 -0
- package/classifier/PostcodeClassifier.ts +86 -0
- package/classifier/RoadTypeClassifier.test.ts +37 -0
- package/classifier/RoadTypeClassifier.ts +43 -0
- package/classifier/StopWordClassifier.test.ts +32 -0
- package/classifier/StopWordClassifier.ts +44 -0
- package/classifier/StreetPrefixClassifier.test.ts +37 -0
- package/classifier/StreetPrefixClassifier.ts +58 -0
- package/classifier/StreetProperNameClassifier.test.ts +30 -0
- package/classifier/StreetProperNameClassifier.ts +38 -0
- package/classifier/StreetSuffixClassifier.test.ts +63 -0
- package/classifier/StreetSuffixClassifier.ts +77 -0
- package/classifier/SurnameClassifier.test.ts +30 -0
- package/classifier/SurnameClassifier.ts +41 -0
- package/classifier/TokenPositionClassifier.test.ts +95 -0
- package/classifier/TokenPositionClassifier.ts +57 -0
- package/classifier/ToponymClassifier.test.ts +36 -0
- package/classifier/ToponymClassifier.ts +39 -0
- package/classifier/UnitClassifier.test.ts +93 -0
- package/classifier/UnitClassifier.ts +67 -0
- package/classifier/UnitTypeClassifier.test.ts +22 -0
- package/classifier/UnitTypeClassifier.ts +32 -0
- package/classifier/UnitTypeUnitClassifier.test.ts +49 -0
- package/classifier/UnitTypeUnitClassifier.ts +71 -0
- package/classifier/WhosOnFirstClassifier.test.ts +38 -0
- package/classifier/WhosOnFirstClassifier.ts +190 -0
- package/classifier/index.ts +38 -0
- package/classifier/scheme/intersection.ts +125 -0
- package/classifier/scheme/person.ts +117 -0
- package/classifier/scheme/street.ts +409 -0
- package/classifier/scheme/street_name.ts +86 -0
- package/classifier/scheme/venue.ts +206 -0
- package/classifier/super/BaseClassifier.ts +39 -0
- package/classifier/super/PhraseClassifier.ts +37 -0
- package/classifier/super/SectionClassifier.ts +42 -0
- package/classifier/super/WordClassifier.ts +31 -0
- package/classifier/super/index.ts +10 -0
- package/debug/DebugOutputBuilder.ts +219 -0
- package/docker-compose.yml +8 -0
- package/docs/api.png +0 -0
- package/docs/cli.png +0 -0
- package/docs/demo.png +0 -0
- package/eslint.config.mjs +32 -0
- package/index.ts +10 -0
- package/out/bin/cli.js +41 -0
- package/package.json +130 -0
- package/parser/AddressParser.ts +162 -0
- package/parser/Parser.ts +125 -0
- package/parser/index.ts +9 -0
- package/parser/utils.ts +94 -0
- package/resources/chromium-i18n/ssl-address/AC.json +8 -0
- package/resources/chromium-i18n/ssl-address/AD.json +16 -0
- package/resources/chromium-i18n/ssl-address/AE.json +15 -0
- package/resources/chromium-i18n/ssl-address/AF.json +8 -0
- package/resources/chromium-i18n/ssl-address/AG.json +1 -0
- package/resources/chromium-i18n/ssl-address/AI.json +8 -0
- package/resources/chromium-i18n/ssl-address/AL.json +8 -0
- package/resources/chromium-i18n/ssl-address/AM.json +16 -0
- package/resources/chromium-i18n/ssl-address/AO.json +1 -0
- package/resources/chromium-i18n/ssl-address/AQ.json +1 -0
- package/resources/chromium-i18n/ssl-address/AR.json +16 -0
- package/resources/chromium-i18n/ssl-address/AS.json +13 -0
- package/resources/chromium-i18n/ssl-address/AT.json +10 -0
- package/resources/chromium-i18n/ssl-address/AU.json +20 -0
- package/resources/chromium-i18n/ssl-address/AW.json +1 -0
- package/resources/chromium-i18n/ssl-address/AX.json +11 -0
- package/resources/chromium-i18n/ssl-address/AZ.json +9 -0
- package/resources/chromium-i18n/ssl-address/BA.json +8 -0
- package/resources/chromium-i18n/ssl-address/BB.json +9 -0
- package/resources/chromium-i18n/ssl-address/BD.json +9 -0
- package/resources/chromium-i18n/ssl-address/BE.json +10 -0
- package/resources/chromium-i18n/ssl-address/BF.json +6 -0
- package/resources/chromium-i18n/ssl-address/BG.json +9 -0
- package/resources/chromium-i18n/ssl-address/BH.json +8 -0
- package/resources/chromium-i18n/ssl-address/BI.json +1 -0
- package/resources/chromium-i18n/ssl-address/BJ.json +1 -0
- package/resources/chromium-i18n/ssl-address/BL.json +11 -0
- package/resources/chromium-i18n/ssl-address/BM.json +9 -0
- package/resources/chromium-i18n/ssl-address/BN.json +9 -0
- package/resources/chromium-i18n/ssl-address/BO.json +1 -0
- package/resources/chromium-i18n/ssl-address/BQ.json +1 -0
- package/resources/chromium-i18n/ssl-address/BR.json +21 -0
- package/resources/chromium-i18n/ssl-address/BS.json +12 -0
- package/resources/chromium-i18n/ssl-address/BT.json +9 -0
- package/resources/chromium-i18n/ssl-address/BV.json +1 -0
- package/resources/chromium-i18n/ssl-address/BW.json +1 -0
- package/resources/chromium-i18n/ssl-address/BY.json +9 -0
- package/resources/chromium-i18n/ssl-address/BZ.json +1 -0
- package/resources/chromium-i18n/ssl-address/CA.json +17 -0
- package/resources/chromium-i18n/ssl-address/CC.json +9 -0
- package/resources/chromium-i18n/ssl-address/CD.json +1 -0
- package/resources/chromium-i18n/ssl-address/CF.json +1 -0
- package/resources/chromium-i18n/ssl-address/CG.json +1 -0
- package/resources/chromium-i18n/ssl-address/CH.json +12 -0
- package/resources/chromium-i18n/ssl-address/CI.json +6 -0
- package/resources/chromium-i18n/ssl-address/CK.json +1 -0
- package/resources/chromium-i18n/ssl-address/CL.json +15 -0
- package/resources/chromium-i18n/ssl-address/CM.json +1 -0
- package/resources/chromium-i18n/ssl-address/CN.json +22 -0
- package/resources/chromium-i18n/ssl-address/CO.json +11 -0
- package/resources/chromium-i18n/ssl-address/CR.json +10 -0
- package/resources/chromium-i18n/ssl-address/CU.json +12 -0
- package/resources/chromium-i18n/ssl-address/CV.json +13 -0
- package/resources/chromium-i18n/ssl-address/CW.json +1 -0
- package/resources/chromium-i18n/ssl-address/CX.json +9 -0
- package/resources/chromium-i18n/ssl-address/CY.json +8 -0
- package/resources/chromium-i18n/ssl-address/CZ.json +10 -0
- package/resources/chromium-i18n/ssl-address/DE.json +10 -0
- package/resources/chromium-i18n/ssl-address/DJ.json +1 -0
- package/resources/chromium-i18n/ssl-address/DK.json +10 -0
- package/resources/chromium-i18n/ssl-address/DM.json +1 -0
- package/resources/chromium-i18n/ssl-address/DO.json +9 -0
- package/resources/chromium-i18n/ssl-address/DZ.json +8 -0
- package/resources/chromium-i18n/ssl-address/EC.json +10 -0
- package/resources/chromium-i18n/ssl-address/EE.json +9 -0
- package/resources/chromium-i18n/ssl-address/EG.json +16 -0
- package/resources/chromium-i18n/ssl-address/EH.json +8 -0
- package/resources/chromium-i18n/ssl-address/ER.json +1 -0
- package/resources/chromium-i18n/ssl-address/ES.json +16 -0
- package/resources/chromium-i18n/ssl-address/ET.json +8 -0
- package/resources/chromium-i18n/ssl-address/FI.json +11 -0
- package/resources/chromium-i18n/ssl-address/FJ.json +1 -0
- package/resources/chromium-i18n/ssl-address/FK.json +10 -0
- package/resources/chromium-i18n/ssl-address/FM.json +13 -0
- package/resources/chromium-i18n/ssl-address/FO.json +10 -0
- package/resources/chromium-i18n/ssl-address/FR.json +11 -0
- package/resources/chromium-i18n/ssl-address/GA.json +1 -0
- package/resources/chromium-i18n/ssl-address/GB.json +12 -0
- package/resources/chromium-i18n/ssl-address/GD.json +1 -0
- package/resources/chromium-i18n/ssl-address/GE.json +9 -0
- package/resources/chromium-i18n/ssl-address/GF.json +11 -0
- package/resources/chromium-i18n/ssl-address/GG.json +11 -0
- package/resources/chromium-i18n/ssl-address/GH.json +1 -0
- package/resources/chromium-i18n/ssl-address/GI.json +9 -0
- package/resources/chromium-i18n/ssl-address/GL.json +9 -0
- package/resources/chromium-i18n/ssl-address/GM.json +1 -0
- package/resources/chromium-i18n/ssl-address/GN.json +8 -0
- package/resources/chromium-i18n/ssl-address/GP.json +11 -0
- package/resources/chromium-i18n/ssl-address/GQ.json +1 -0
- package/resources/chromium-i18n/ssl-address/GR.json +10 -0
- package/resources/chromium-i18n/ssl-address/GS.json +10 -0
- package/resources/chromium-i18n/ssl-address/GT.json +8 -0
- package/resources/chromium-i18n/ssl-address/GU.json +12 -0
- package/resources/chromium-i18n/ssl-address/GW.json +8 -0
- package/resources/chromium-i18n/ssl-address/GY.json +1 -0
- package/resources/chromium-i18n/ssl-address/HK.json +16 -0
- package/resources/chromium-i18n/ssl-address/HM.json +9 -0
- package/resources/chromium-i18n/ssl-address/HN.json +9 -0
- package/resources/chromium-i18n/ssl-address/HR.json +10 -0
- package/resources/chromium-i18n/ssl-address/HT.json +9 -0
- package/resources/chromium-i18n/ssl-address/HU.json +11 -0
- package/resources/chromium-i18n/ssl-address/ID.json +13 -0
- package/resources/chromium-i18n/ssl-address/IE.json +16 -0
- package/resources/chromium-i18n/ssl-address/IL.json +9 -0
- package/resources/chromium-i18n/ssl-address/IM.json +11 -0
- package/resources/chromium-i18n/ssl-address/IN.json +18 -0
- package/resources/chromium-i18n/ssl-address/IO.json +10 -0
- package/resources/chromium-i18n/ssl-address/IQ.json +10 -0
- package/resources/chromium-i18n/ssl-address/IR.json +14 -0
- package/resources/chromium-i18n/ssl-address/IS.json +9 -0
- package/resources/chromium-i18n/ssl-address/IT.json +17 -0
- package/resources/chromium-i18n/ssl-address/JE.json +11 -0
- package/resources/chromium-i18n/ssl-address/JM.json +12 -0
- package/resources/chromium-i18n/ssl-address/JO.json +8 -0
- package/resources/chromium-i18n/ssl-address/JP.json +19 -0
- package/resources/chromium-i18n/ssl-address/KE.json +8 -0
- package/resources/chromium-i18n/ssl-address/KG.json +8 -0
- package/resources/chromium-i18n/ssl-address/KH.json +8 -0
- package/resources/chromium-i18n/ssl-address/KI.json +8 -0
- package/resources/chromium-i18n/ssl-address/KM.json +1 -0
- package/resources/chromium-i18n/ssl-address/KN.json +12 -0
- package/resources/chromium-i18n/ssl-address/KP.json +12 -0
- package/resources/chromium-i18n/ssl-address/KR.json +23 -0
- package/resources/chromium-i18n/ssl-address/KW.json +8 -0
- package/resources/chromium-i18n/ssl-address/KY.json +14 -0
- package/resources/chromium-i18n/ssl-address/KZ.json +8 -0
- package/resources/chromium-i18n/ssl-address/LA.json +8 -0
- package/resources/chromium-i18n/ssl-address/LB.json +8 -0
- package/resources/chromium-i18n/ssl-address/LC.json +1 -0
- package/resources/chromium-i18n/ssl-address/LI.json +11 -0
- package/resources/chromium-i18n/ssl-address/LK.json +9 -0
- package/resources/chromium-i18n/ssl-address/LR.json +8 -0
- package/resources/chromium-i18n/ssl-address/LS.json +8 -0
- package/resources/chromium-i18n/ssl-address/LT.json +10 -0
- package/resources/chromium-i18n/ssl-address/LU.json +11 -0
- package/resources/chromium-i18n/ssl-address/LV.json +9 -0
- package/resources/chromium-i18n/ssl-address/LY.json +1 -0
- package/resources/chromium-i18n/ssl-address/MA.json +8 -0
- package/resources/chromium-i18n/ssl-address/MC.json +9 -0
- package/resources/chromium-i18n/ssl-address/MD.json +9 -0
- package/resources/chromium-i18n/ssl-address/ME.json +8 -0
- package/resources/chromium-i18n/ssl-address/MF.json +11 -0
- package/resources/chromium-i18n/ssl-address/MG.json +8 -0
- package/resources/chromium-i18n/ssl-address/MH.json +13 -0
- package/resources/chromium-i18n/ssl-address/MK.json +8 -0
- package/resources/chromium-i18n/ssl-address/ML.json +1 -0
- package/resources/chromium-i18n/ssl-address/MM.json +8 -0
- package/resources/chromium-i18n/ssl-address/MN.json +9 -0
- package/resources/chromium-i18n/ssl-address/MO.json +8 -0
- package/resources/chromium-i18n/ssl-address/MP.json +13 -0
- package/resources/chromium-i18n/ssl-address/MQ.json +11 -0
- package/resources/chromium-i18n/ssl-address/MR.json +1 -0
- package/resources/chromium-i18n/ssl-address/MS.json +1 -0
- package/resources/chromium-i18n/ssl-address/MT.json +10 -0
- package/resources/chromium-i18n/ssl-address/MU.json +9 -0
- package/resources/chromium-i18n/ssl-address/MV.json +9 -0
- package/resources/chromium-i18n/ssl-address/MW.json +1 -0
- package/resources/chromium-i18n/ssl-address/MX.json +20 -0
- package/resources/chromium-i18n/ssl-address/MY.json +19 -0
- package/resources/chromium-i18n/ssl-address/MZ.json +12 -0
- package/resources/chromium-i18n/ssl-address/NA.json +1 -0
- package/resources/chromium-i18n/ssl-address/NC.json +11 -0
- package/resources/chromium-i18n/ssl-address/NE.json +8 -0
- package/resources/chromium-i18n/ssl-address/NF.json +9 -0
- package/resources/chromium-i18n/ssl-address/NG.json +15 -0
- package/resources/chromium-i18n/ssl-address/NI.json +16 -0
- package/resources/chromium-i18n/ssl-address/NL.json +10 -0
- package/resources/chromium-i18n/ssl-address/NO.json +11 -0
- package/resources/chromium-i18n/ssl-address/NP.json +9 -0
- package/resources/chromium-i18n/ssl-address/NR.json +12 -0
- package/resources/chromium-i18n/ssl-address/NU.json +1 -0
- package/resources/chromium-i18n/ssl-address/NZ.json +10 -0
- package/resources/chromium-i18n/ssl-address/OM.json +8 -0
- package/resources/chromium-i18n/ssl-address/PA.json +7 -0
- package/resources/chromium-i18n/ssl-address/PE.json +14 -0
- package/resources/chromium-i18n/ssl-address/PF.json +11 -0
- package/resources/chromium-i18n/ssl-address/PG.json +9 -0
- package/resources/chromium-i18n/ssl-address/PH.json +15 -0
- package/resources/chromium-i18n/ssl-address/PK.json +9 -0
- package/resources/chromium-i18n/ssl-address/PL.json +10 -0
- package/resources/chromium-i18n/ssl-address/PM.json +10 -0
- package/resources/chromium-i18n/ssl-address/PN.json +10 -0
- package/resources/chromium-i18n/ssl-address/PR.json +13 -0
- package/resources/chromium-i18n/ssl-address/PS.json +1 -0
- package/resources/chromium-i18n/ssl-address/PT.json +10 -0
- package/resources/chromium-i18n/ssl-address/PW.json +13 -0
- package/resources/chromium-i18n/ssl-address/PY.json +8 -0
- package/resources/chromium-i18n/ssl-address/QA.json +1 -0
- package/resources/chromium-i18n/ssl-address/RE.json +11 -0
- package/resources/chromium-i18n/ssl-address/RO.json +10 -0
- package/resources/chromium-i18n/ssl-address/RS.json +9 -0
- package/resources/chromium-i18n/ssl-address/RU.json +20 -0
- package/resources/chromium-i18n/ssl-address/RW.json +1 -0
- package/resources/chromium-i18n/ssl-address/SA.json +8 -0
- package/resources/chromium-i18n/ssl-address/SB.json +1 -0
- package/resources/chromium-i18n/ssl-address/SC.json +8 -0
- package/resources/chromium-i18n/ssl-address/SD.json +9 -0
- package/resources/chromium-i18n/ssl-address/SE.json +12 -0
- package/resources/chromium-i18n/ssl-address/SG.json +10 -0
- package/resources/chromium-i18n/ssl-address/SH.json +10 -0
- package/resources/chromium-i18n/ssl-address/SI.json +9 -0
- package/resources/chromium-i18n/ssl-address/SJ.json +11 -0
- package/resources/chromium-i18n/ssl-address/SK.json +10 -0
- package/resources/chromium-i18n/ssl-address/SL.json +1 -0
- package/resources/chromium-i18n/ssl-address/SM.json +10 -0
- package/resources/chromium-i18n/ssl-address/SN.json +8 -0
- package/resources/chromium-i18n/ssl-address/SO.json +15 -0
- package/resources/chromium-i18n/ssl-address/SR.json +11 -0
- package/resources/chromium-i18n/ssl-address/SS.json +1 -0
- package/resources/chromium-i18n/ssl-address/ST.json +1 -0
- package/resources/chromium-i18n/ssl-address/SV.json +17 -0
- package/resources/chromium-i18n/ssl-address/SX.json +1 -0
- package/resources/chromium-i18n/ssl-address/SY.json +6 -0
- package/resources/chromium-i18n/ssl-address/SZ.json +10 -0
- package/resources/chromium-i18n/ssl-address/TA.json +8 -0
- package/resources/chromium-i18n/ssl-address/TC.json +10 -0
- package/resources/chromium-i18n/ssl-address/TD.json +1 -0
- package/resources/chromium-i18n/ssl-address/TF.json +1 -0
- package/resources/chromium-i18n/ssl-address/TG.json +1 -0
- package/resources/chromium-i18n/ssl-address/TH.json +16 -0
- package/resources/chromium-i18n/ssl-address/TJ.json +8 -0
- package/resources/chromium-i18n/ssl-address/TK.json +1 -0
- package/resources/chromium-i18n/ssl-address/TL.json +1 -0
- package/resources/chromium-i18n/ssl-address/TM.json +8 -0
- package/resources/chromium-i18n/ssl-address/TN.json +9 -0
- package/resources/chromium-i18n/ssl-address/TO.json +1 -0
- package/resources/chromium-i18n/ssl-address/TR.json +16 -0
- package/resources/chromium-i18n/ssl-address/TT.json +1 -0
- package/resources/chromium-i18n/ssl-address/TV.json +12 -0
- package/resources/chromium-i18n/ssl-address/TW.json +20 -0
- package/resources/chromium-i18n/ssl-address/TZ.json +8 -0
- package/resources/chromium-i18n/ssl-address/UA.json +19 -0
- package/resources/chromium-i18n/ssl-address/UG.json +1 -0
- package/resources/chromium-i18n/ssl-address/UM.json +13 -0
- package/resources/chromium-i18n/ssl-address/US.json +20 -0
- package/resources/chromium-i18n/ssl-address/UY.json +15 -0
- package/resources/chromium-i18n/ssl-address/UZ.json +10 -0
- package/resources/chromium-i18n/ssl-address/VA.json +8 -0
- package/resources/chromium-i18n/ssl-address/VC.json +9 -0
- package/resources/chromium-i18n/ssl-address/VE.json +16 -0
- package/resources/chromium-i18n/ssl-address/VG.json +9 -0
- package/resources/chromium-i18n/ssl-address/VI.json +13 -0
- package/resources/chromium-i18n/ssl-address/VN.json +15 -0
- package/resources/chromium-i18n/ssl-address/VU.json +1 -0
- package/resources/chromium-i18n/ssl-address/WF.json +10 -0
- package/resources/chromium-i18n/ssl-address/WS.json +1 -0
- package/resources/chromium-i18n/ssl-address/XK.json +8 -0
- package/resources/chromium-i18n/ssl-address/YE.json +1 -0
- package/resources/chromium-i18n/ssl-address/YT.json +10 -0
- package/resources/chromium-i18n/ssl-address/ZA.json +10 -0
- package/resources/chromium-i18n/ssl-address/ZM.json +8 -0
- package/resources/chromium-i18n/ssl-address/ZW.json +1 -0
- package/resources/chromium-i18n/ssl-address-download.sh +15 -0
- package/resources/chromium-i18n/ssl-address.json +2468 -0
- package/resources/custom/custom.ts +12 -0
- package/resources/helper.ts +151 -0
- package/resources/libpostal/dictionaries/README.md +88 -0
- package/resources/libpostal/dictionaries/af/ambiguous_expansions.txt +8 -0
- package/resources/libpostal/dictionaries/af/concatenated_suffixes_inseparable.txt +1 -0
- package/resources/libpostal/dictionaries/af/concatenated_suffixes_separable.txt +14 -0
- package/resources/libpostal/dictionaries/af/directionals.txt +12 -0
- package/resources/libpostal/dictionaries/af/personal_titles.txt +23 -0
- package/resources/libpostal/dictionaries/af/place_names.txt +2 -0
- package/resources/libpostal/dictionaries/af/qualifiers.txt +4 -0
- package/resources/libpostal/dictionaries/af/stopwords.txt +38 -0
- package/resources/libpostal/dictionaries/af/street_types.txt +21 -0
- package/resources/libpostal/dictionaries/all/ambiguous_expansions.txt +1 -0
- package/resources/libpostal/dictionaries/all/chains.txt +504 -0
- package/resources/libpostal/dictionaries/all/given_names.txt +12715 -0
- package/resources/libpostal/dictionaries/all/people.txt +5 -0
- package/resources/libpostal/dictionaries/all/surnames.txt +49375 -0
- package/resources/libpostal/dictionaries/ar/personal_titles.txt +4 -0
- package/resources/libpostal/dictionaries/ar/place_names.txt +1 -0
- package/resources/libpostal/dictionaries/ar/street_types.txt +11 -0
- package/resources/libpostal/dictionaries/ast/ambiguous_expansions.txt +1 -0
- package/resources/libpostal/dictionaries/ast/personal_titles.txt +1 -0
- package/resources/libpostal/dictionaries/ast/street_types.txt +3 -0
- package/resources/libpostal/dictionaries/az/building_types.txt +1 -0
- package/resources/libpostal/dictionaries/az/directionals.txt +8 -0
- package/resources/libpostal/dictionaries/az/personal_titles.txt +3 -0
- package/resources/libpostal/dictionaries/az/place_names.txt +1 -0
- package/resources/libpostal/dictionaries/az/street_types.txt +18 -0
- package/resources/libpostal/dictionaries/be/ambiguous_expansions.txt +8 -0
- package/resources/libpostal/dictionaries/be/building_types.txt +2 -0
- package/resources/libpostal/dictionaries/be/chains.txt +8 -0
- package/resources/libpostal/dictionaries/be/directionals.txt +25 -0
- package/resources/libpostal/dictionaries/be/house_numbers.txt +2 -0
- package/resources/libpostal/dictionaries/be/personal_titles.txt +6 -0
- package/resources/libpostal/dictionaries/be/qualifiers.txt +20 -0
- package/resources/libpostal/dictionaries/be/street_types.txt +28 -0
- package/resources/libpostal/dictionaries/be/unit_types_numbered.txt +2 -0
- package/resources/libpostal/dictionaries/bg/ambiguous_expansions.txt +2 -0
- package/resources/libpostal/dictionaries/bg/cross_streets.txt +10 -0
- package/resources/libpostal/dictionaries/bg/directionals.txt +8 -0
- package/resources/libpostal/dictionaries/bg/entrances.txt +2 -0
- package/resources/libpostal/dictionaries/bg/level_types_numbered.txt +6 -0
- package/resources/libpostal/dictionaries/bg/level_types_standalone.txt +4 -0
- package/resources/libpostal/dictionaries/bg/near.txt +20 -0
- package/resources/libpostal/dictionaries/bg/number.txt +2 -0
- package/resources/libpostal/dictionaries/bg/personal_titles.txt +14 -0
- package/resources/libpostal/dictionaries/bg/place_names.txt +6 -0
- package/resources/libpostal/dictionaries/bg/post_office.txt +2 -0
- package/resources/libpostal/dictionaries/bg/qualifiers.txt +10 -0
- package/resources/libpostal/dictionaries/bg/staircases.txt +2 -0
- package/resources/libpostal/dictionaries/bg/street_types.txt +6 -0
- package/resources/libpostal/dictionaries/bg/unit_directions.txt +4 -0
- package/resources/libpostal/dictionaries/bg/unit_types_numbered.txt +6 -0
- package/resources/libpostal/dictionaries/br/personal_titles.txt +3 -0
- package/resources/libpostal/dictionaries/br/place_names.txt +3 -0
- package/resources/libpostal/dictionaries/br/qualifiers.txt +1 -0
- package/resources/libpostal/dictionaries/br/stopwords.txt +4 -0
- package/resources/libpostal/dictionaries/br/street_types.txt +40 -0
- package/resources/libpostal/dictionaries/bs/ambiguous_expansions.txt +5 -0
- package/resources/libpostal/dictionaries/bs/building_types.txt +1 -0
- package/resources/libpostal/dictionaries/bs/cross_streets.txt +6 -0
- package/resources/libpostal/dictionaries/bs/directionals.txt +4 -0
- package/resources/libpostal/dictionaries/bs/entrances.txt +1 -0
- package/resources/libpostal/dictionaries/bs/level_types_basement.txt +1 -0
- package/resources/libpostal/dictionaries/bs/level_types_mezzanine.txt +1 -0
- package/resources/libpostal/dictionaries/bs/level_types_numbered.txt +2 -0
- package/resources/libpostal/dictionaries/bs/level_types_standalone.txt +2 -0
- package/resources/libpostal/dictionaries/bs/near.txt +5 -0
- package/resources/libpostal/dictionaries/bs/no_number.txt +1 -0
- package/resources/libpostal/dictionaries/bs/number.txt +1 -0
- package/resources/libpostal/dictionaries/bs/personal_titles.txt +8 -0
- package/resources/libpostal/dictionaries/bs/place_names.txt +9 -0
- package/resources/libpostal/dictionaries/bs/post_office.txt +1 -0
- package/resources/libpostal/dictionaries/bs/qualifiers.txt +2 -0
- package/resources/libpostal/dictionaries/bs/staircases.txt +1 -0
- package/resources/libpostal/dictionaries/bs/stopwords.txt +2 -0
- package/resources/libpostal/dictionaries/bs/street_types.txt +12 -0
- package/resources/libpostal/dictionaries/bs/unit_directions.txt +2 -0
- package/resources/libpostal/dictionaries/bs/unit_types_numbered.txt +4 -0
- package/resources/libpostal/dictionaries/ca/ambiguous_expansions.txt +9 -0
- package/resources/libpostal/dictionaries/ca/cross_streets.txt +8 -0
- package/resources/libpostal/dictionaries/ca/directionals.txt +9 -0
- package/resources/libpostal/dictionaries/ca/elisions.txt +1 -0
- package/resources/libpostal/dictionaries/ca/entrances.txt +1 -0
- package/resources/libpostal/dictionaries/ca/given_names.txt +1 -0
- package/resources/libpostal/dictionaries/ca/level_types_basement.txt +1 -0
- package/resources/libpostal/dictionaries/ca/level_types_mezzanine.txt +1 -0
- package/resources/libpostal/dictionaries/ca/level_types_numbered.txt +2 -0
- package/resources/libpostal/dictionaries/ca/level_types_standalone.txt +5 -0
- package/resources/libpostal/dictionaries/ca/level_types_sub_basement.txt +1 -0
- package/resources/libpostal/dictionaries/ca/near.txt +12 -0
- package/resources/libpostal/dictionaries/ca/no_number.txt +1 -0
- package/resources/libpostal/dictionaries/ca/number.txt +1 -0
- package/resources/libpostal/dictionaries/ca/personal_titles.txt +10 -0
- package/resources/libpostal/dictionaries/ca/place_names.txt +133 -0
- package/resources/libpostal/dictionaries/ca/post_office.txt +1 -0
- package/resources/libpostal/dictionaries/ca/postcodes.txt +1 -0
- package/resources/libpostal/dictionaries/ca/qualifiers.txt +8 -0
- package/resources/libpostal/dictionaries/ca/staircases.txt +1 -0
- package/resources/libpostal/dictionaries/ca/stopwords.txt +31 -0
- package/resources/libpostal/dictionaries/ca/street_types.txt +28 -0
- package/resources/libpostal/dictionaries/ca/synonyms.txt +14 -0
- package/resources/libpostal/dictionaries/ca/unit_directions.txt +2 -0
- package/resources/libpostal/dictionaries/ca/unit_types_numbered.txt +10 -0
- package/resources/libpostal/dictionaries/cs/ambiguous_expansions.txt +6 -0
- package/resources/libpostal/dictionaries/cs/chains.txt +1 -0
- package/resources/libpostal/dictionaries/cs/cross_streets.txt +9 -0
- package/resources/libpostal/dictionaries/cs/directionals.txt +4 -0
- package/resources/libpostal/dictionaries/cs/entrances.txt +1 -0
- package/resources/libpostal/dictionaries/cs/house_numbers.txt +1 -0
- package/resources/libpostal/dictionaries/cs/level_types_basement.txt +1 -0
- package/resources/libpostal/dictionaries/cs/level_types_numbered.txt +3 -0
- package/resources/libpostal/dictionaries/cs/level_types_standalone.txt +1 -0
- package/resources/libpostal/dictionaries/cs/near.txt +12 -0
- package/resources/libpostal/dictionaries/cs/number.txt +1 -0
- package/resources/libpostal/dictionaries/cs/personal_titles.txt +2 -0
- package/resources/libpostal/dictionaries/cs/place_names.txt +47 -0
- package/resources/libpostal/dictionaries/cs/post_office.txt +1 -0
- package/resources/libpostal/dictionaries/cs/staircases.txt +1 -0
- package/resources/libpostal/dictionaries/cs/stopwords.txt +1 -0
- package/resources/libpostal/dictionaries/cs/street_types.txt +6 -0
- package/resources/libpostal/dictionaries/cs/unit_directions.txt +2 -0
- package/resources/libpostal/dictionaries/cs/unit_types_numbered.txt +3 -0
- package/resources/libpostal/dictionaries/cy/building_types.txt +5 -0
- package/resources/libpostal/dictionaries/cy/directionals.txt +4 -0
- package/resources/libpostal/dictionaries/cy/personal_titles.txt +2 -0
- package/resources/libpostal/dictionaries/cy/place_names.txt +22 -0
- package/resources/libpostal/dictionaries/cy/qualifiers.txt +2 -0
- package/resources/libpostal/dictionaries/cy/stopwords.txt +3 -0
- package/resources/libpostal/dictionaries/cy/street_types.txt +22 -0
- package/resources/libpostal/dictionaries/da/academic_degrees.txt +1 -0
- package/resources/libpostal/dictionaries/da/ambiguous_expansions.txt +7 -0
- package/resources/libpostal/dictionaries/da/building_types.txt +3 -0
- package/resources/libpostal/dictionaries/da/concatenated_suffixes_inseparable.txt +21 -0
- package/resources/libpostal/dictionaries/da/concatenated_suffixes_separable.txt +9 -0
- package/resources/libpostal/dictionaries/da/cross_streets.txt +5 -0
- package/resources/libpostal/dictionaries/da/directionals.txt +13 -0
- package/resources/libpostal/dictionaries/da/entrances.txt +1 -0
- package/resources/libpostal/dictionaries/da/level_types_basement.txt +1 -0
- package/resources/libpostal/dictionaries/da/level_types_numbered.txt +2 -0
- package/resources/libpostal/dictionaries/da/level_types_standalone.txt +2 -0
- package/resources/libpostal/dictionaries/da/near.txt +14 -0
- package/resources/libpostal/dictionaries/da/number.txt +1 -0
- package/resources/libpostal/dictionaries/da/personal_titles.txt +1 -0
- package/resources/libpostal/dictionaries/da/place_names.txt +7 -0
- package/resources/libpostal/dictionaries/da/post_office.txt +2 -0
- package/resources/libpostal/dictionaries/da/staircases.txt +2 -0
- package/resources/libpostal/dictionaries/da/stopwords.txt +1 -0
- package/resources/libpostal/dictionaries/da/street_types.txt +38 -0
- package/resources/libpostal/dictionaries/da/synonyms.txt +2 -0
- package/resources/libpostal/dictionaries/da/unit_directions.txt +3 -0
- package/resources/libpostal/dictionaries/da/unit_types_numbered.txt +2 -0
- package/resources/libpostal/dictionaries/de/academic_degrees.txt +5 -0
- package/resources/libpostal/dictionaries/de/ambiguous_expansions.txt +18 -0
- package/resources/libpostal/dictionaries/de/chains.txt +11 -0
- package/resources/libpostal/dictionaries/de/company_types.txt +8 -0
- package/resources/libpostal/dictionaries/de/concatenated_prefixes_separable.txt +17 -0
- package/resources/libpostal/dictionaries/de/concatenated_suffixes_inseparable.txt +5 -0
- package/resources/libpostal/dictionaries/de/concatenated_suffixes_separable.txt +16 -0
- package/resources/libpostal/dictionaries/de/cross_streets.txt +5 -0
- package/resources/libpostal/dictionaries/de/directionals.txt +41 -0
- package/resources/libpostal/dictionaries/de/entrances.txt +1 -0
- package/resources/libpostal/dictionaries/de/house_numbers.txt +1 -0
- package/resources/libpostal/dictionaries/de/level_types_basement.txt +1 -0
- package/resources/libpostal/dictionaries/de/level_types_numbered.txt +3 -0
- package/resources/libpostal/dictionaries/de/level_types_standalone.txt +4 -0
- package/resources/libpostal/dictionaries/de/near.txt +16 -0
- package/resources/libpostal/dictionaries/de/number.txt +1 -0
- package/resources/libpostal/dictionaries/de/personal_suffixes.txt +2 -0
- package/resources/libpostal/dictionaries/de/personal_titles.txt +18 -0
- package/resources/libpostal/dictionaries/de/place_names.txt +123 -0
- package/resources/libpostal/dictionaries/de/post_office.txt +1 -0
- package/resources/libpostal/dictionaries/de/qualifiers.txt +3 -0
- package/resources/libpostal/dictionaries/de/staircases.txt +2 -0
- package/resources/libpostal/dictionaries/de/stopwords.txt +39 -0
- package/resources/libpostal/dictionaries/de/street_types.txt +36 -0
- package/resources/libpostal/dictionaries/de/synonyms.txt +16 -0
- package/resources/libpostal/dictionaries/de/toponyms.txt +28 -0
- package/resources/libpostal/dictionaries/de/unit_directions.txt +2 -0
- package/resources/libpostal/dictionaries/de/unit_types_numbered.txt +7 -0
- package/resources/libpostal/dictionaries/el/ambiguous_expansions.txt +1 -0
- package/resources/libpostal/dictionaries/el/building_types.txt +2 -0
- package/resources/libpostal/dictionaries/el/entrances.txt +2 -0
- package/resources/libpostal/dictionaries/el/given_names.txt +6 -0
- package/resources/libpostal/dictionaries/el/level_types_basement.txt +2 -0
- package/resources/libpostal/dictionaries/el/level_types_mezzanine.txt +2 -0
- package/resources/libpostal/dictionaries/el/level_types_numbered.txt +2 -0
- package/resources/libpostal/dictionaries/el/level_types_standalone.txt +2 -0
- package/resources/libpostal/dictionaries/el/personal_titles.txt +12 -0
- package/resources/libpostal/dictionaries/el/place_names.txt +18 -0
- package/resources/libpostal/dictionaries/el/post_office.txt +2 -0
- package/resources/libpostal/dictionaries/el/postcodes.txt +2 -0
- package/resources/libpostal/dictionaries/el/qualifiers.txt +6 -0
- package/resources/libpostal/dictionaries/el/staircases.txt +2 -0
- package/resources/libpostal/dictionaries/el/street_types.txt +6 -0
- package/resources/libpostal/dictionaries/el/synonyms.txt +41 -0
- package/resources/libpostal/dictionaries/el/toponyms.txt +3 -0
- package/resources/libpostal/dictionaries/el/unit_types_numbered.txt +6 -0
- package/resources/libpostal/dictionaries/en/academic_degrees.txt +27 -0
- package/resources/libpostal/dictionaries/en/ambiguous_expansions.txt +178 -0
- package/resources/libpostal/dictionaries/en/building_types.txt +19 -0
- package/resources/libpostal/dictionaries/en/chains.txt +6 -0
- package/resources/libpostal/dictionaries/en/company_types.txt +61 -0
- package/resources/libpostal/dictionaries/en/cross_streets.txt +9 -0
- package/resources/libpostal/dictionaries/en/directionals.txt +20 -0
- package/resources/libpostal/dictionaries/en/entrances.txt +1 -0
- package/resources/libpostal/dictionaries/en/given_names.txt +2 -0
- package/resources/libpostal/dictionaries/en/level_types_basement.txt +1 -0
- package/resources/libpostal/dictionaries/en/level_types_mezzanine.txt +5 -0
- package/resources/libpostal/dictionaries/en/level_types_numbered.txt +4 -0
- package/resources/libpostal/dictionaries/en/level_types_standalone.txt +12 -0
- package/resources/libpostal/dictionaries/en/level_types_sub_basement.txt +1 -0
- package/resources/libpostal/dictionaries/en/near.txt +7 -0
- package/resources/libpostal/dictionaries/en/no_number.txt +1 -0
- package/resources/libpostal/dictionaries/en/nulls.txt +2 -0
- package/resources/libpostal/dictionaries/en/number.txt +1 -0
- package/resources/libpostal/dictionaries/en/personal_suffixes.txt +2 -0
- package/resources/libpostal/dictionaries/en/personal_titles.txt +80 -0
- package/resources/libpostal/dictionaries/en/place_names.txt +315 -0
- package/resources/libpostal/dictionaries/en/post_office.txt +16 -0
- package/resources/libpostal/dictionaries/en/qualifiers.txt +5 -0
- package/resources/libpostal/dictionaries/en/staircases.txt +3 -0
- package/resources/libpostal/dictionaries/en/stopwords.txt +14 -0
- package/resources/libpostal/dictionaries/en/street_names.txt +358 -0
- package/resources/libpostal/dictionaries/en/street_types.txt +410 -0
- package/resources/libpostal/dictionaries/en/synonyms.txt +53 -0
- package/resources/libpostal/dictionaries/en/toponyms.txt +80 -0
- package/resources/libpostal/dictionaries/en/unit_directions.txt +4 -0
- package/resources/libpostal/dictionaries/en/unit_types_numbered.txt +69 -0
- package/resources/libpostal/dictionaries/en/unit_types_standalone.txt +16 -0
- package/resources/libpostal/dictionaries/es/academic_degrees.txt +2 -0
- package/resources/libpostal/dictionaries/es/ambiguous_expansions.txt +45 -0
- package/resources/libpostal/dictionaries/es/building_types.txt +15 -0
- package/resources/libpostal/dictionaries/es/company_types.txt +49 -0
- package/resources/libpostal/dictionaries/es/cross_streets.txt +9 -0
- package/resources/libpostal/dictionaries/es/directionals.txt +13 -0
- package/resources/libpostal/dictionaries/es/entrances.txt +3 -0
- package/resources/libpostal/dictionaries/es/given_names.txt +3 -0
- package/resources/libpostal/dictionaries/es/house_numbers.txt +2 -0
- package/resources/libpostal/dictionaries/es/level_types_basement.txt +1 -0
- package/resources/libpostal/dictionaries/es/level_types_mezzanine.txt +1 -0
- package/resources/libpostal/dictionaries/es/level_types_numbered.txt +2 -0
- package/resources/libpostal/dictionaries/es/level_types_standalone.txt +7 -0
- package/resources/libpostal/dictionaries/es/level_types_sub_basement.txt +1 -0
- package/resources/libpostal/dictionaries/es/near.txt +10 -0
- package/resources/libpostal/dictionaries/es/no_number.txt +1 -0
- package/resources/libpostal/dictionaries/es/number.txt +1 -0
- package/resources/libpostal/dictionaries/es/personal_suffixes.txt +1 -0
- package/resources/libpostal/dictionaries/es/personal_titles.txt +132 -0
- package/resources/libpostal/dictionaries/es/place_names.txt +234 -0
- package/resources/libpostal/dictionaries/es/post_office.txt +4 -0
- package/resources/libpostal/dictionaries/es/postcodes.txt +1 -0
- package/resources/libpostal/dictionaries/es/qualifiers.txt +34 -0
- package/resources/libpostal/dictionaries/es/staircases.txt +2 -0
- package/resources/libpostal/dictionaries/es/stopwords.txt +29 -0
- package/resources/libpostal/dictionaries/es/street_types.txt +109 -0
- package/resources/libpostal/dictionaries/es/surnames.txt +6 -0
- package/resources/libpostal/dictionaries/es/synonyms.txt +58 -0
- package/resources/libpostal/dictionaries/es/toponyms.txt +39 -0
- package/resources/libpostal/dictionaries/es/unit_directions.txt +4 -0
- package/resources/libpostal/dictionaries/es/unit_types_numbered.txt +15 -0
- package/resources/libpostal/dictionaries/es/unit_types_standalone.txt +5 -0
- package/resources/libpostal/dictionaries/et/ambiguous_expansions.txt +5 -0
- package/resources/libpostal/dictionaries/et/building_types.txt +3 -0
- package/resources/libpostal/dictionaries/et/company_types.txt +10 -0
- package/resources/libpostal/dictionaries/et/cross_streets.txt +4 -0
- package/resources/libpostal/dictionaries/et/directionals.txt +9 -0
- package/resources/libpostal/dictionaries/et/entrances.txt +1 -0
- package/resources/libpostal/dictionaries/et/level_types_basement.txt +2 -0
- package/resources/libpostal/dictionaries/et/level_types_numbered.txt +1 -0
- package/resources/libpostal/dictionaries/et/near.txt +4 -0
- package/resources/libpostal/dictionaries/et/number.txt +1 -0
- package/resources/libpostal/dictionaries/et/personal_titles.txt +13 -0
- package/resources/libpostal/dictionaries/et/place_names.txt +39 -0
- package/resources/libpostal/dictionaries/et/post_office.txt +2 -0
- package/resources/libpostal/dictionaries/et/qualifiers.txt +6 -0
- package/resources/libpostal/dictionaries/et/staircases.txt +1 -0
- package/resources/libpostal/dictionaries/et/stopwords.txt +1 -0
- package/resources/libpostal/dictionaries/et/street_types.txt +10 -0
- package/resources/libpostal/dictionaries/et/toponyms.txt +1 -0
- package/resources/libpostal/dictionaries/et/unit_directions.txt +4 -0
- package/resources/libpostal/dictionaries/et/unit_types_numbered.txt +3 -0
- package/resources/libpostal/dictionaries/eu/ambiguous_expansions.txt +2 -0
- package/resources/libpostal/dictionaries/eu/cross_streets.txt +4 -0
- package/resources/libpostal/dictionaries/eu/entrances.txt +1 -0
- package/resources/libpostal/dictionaries/eu/level_types_numbered.txt +1 -0
- package/resources/libpostal/dictionaries/eu/level_types_standalone.txt +2 -0
- package/resources/libpostal/dictionaries/eu/near.txt +5 -0
- package/resources/libpostal/dictionaries/eu/no_number.txt +1 -0
- package/resources/libpostal/dictionaries/eu/place_names.txt +63 -0
- package/resources/libpostal/dictionaries/eu/post_office.txt +1 -0
- package/resources/libpostal/dictionaries/eu/postcodes.txt +1 -0
- package/resources/libpostal/dictionaries/eu/qualifiers.txt +2 -0
- package/resources/libpostal/dictionaries/eu/staircases.txt +1 -0
- package/resources/libpostal/dictionaries/eu/stopwords.txt +1 -0
- package/resources/libpostal/dictionaries/eu/street_types.txt +18 -0
- package/resources/libpostal/dictionaries/eu/unit_directions.txt +3 -0
- package/resources/libpostal/dictionaries/eu/unit_types_numbered.txt +2 -0
- package/resources/libpostal/dictionaries/fa/personal_titles.txt +6 -0
- package/resources/libpostal/dictionaries/fa/place_names.txt +3 -0
- package/resources/libpostal/dictionaries/fa/street_types.txt +7 -0
- package/resources/libpostal/dictionaries/fi/ambiguous_expansions.txt +5 -0
- package/resources/libpostal/dictionaries/fi/building_types.txt +3 -0
- package/resources/libpostal/dictionaries/fi/chains.txt +1 -0
- package/resources/libpostal/dictionaries/fi/concatenated_suffixes_separable.txt +20 -0
- package/resources/libpostal/dictionaries/fi/cross_streets.txt +3 -0
- package/resources/libpostal/dictionaries/fi/directionals.txt +4 -0
- package/resources/libpostal/dictionaries/fi/entrances.txt +1 -0
- package/resources/libpostal/dictionaries/fi/level_types_numbered.txt +1 -0
- package/resources/libpostal/dictionaries/fi/near.txt +5 -0
- package/resources/libpostal/dictionaries/fi/number.txt +1 -0
- package/resources/libpostal/dictionaries/fi/post_office.txt +1 -0
- package/resources/libpostal/dictionaries/fi/qualifiers.txt +2 -0
- package/resources/libpostal/dictionaries/fi/staircases.txt +1 -0
- package/resources/libpostal/dictionaries/fi/stopwords.txt +1 -0
- package/resources/libpostal/dictionaries/fi/street_types.txt +20 -0
- package/resources/libpostal/dictionaries/fi/synonyms.txt +1 -0
- package/resources/libpostal/dictionaries/fi/unit_directions.txt +4 -0
- package/resources/libpostal/dictionaries/fi/unit_types_numbered.txt +2 -0
- package/resources/libpostal/dictionaries/fil/street_types.txt +3 -0
- package/resources/libpostal/dictionaries/fr/ambiguous_expansions.txt +25 -0
- package/resources/libpostal/dictionaries/fr/building_types.txt +4 -0
- package/resources/libpostal/dictionaries/fr/chains.txt +2 -0
- package/resources/libpostal/dictionaries/fr/company_types.txt +40 -0
- package/resources/libpostal/dictionaries/fr/cross_streets.txt +5 -0
- package/resources/libpostal/dictionaries/fr/directionals.txt +12 -0
- package/resources/libpostal/dictionaries/fr/elisions.txt +9 -0
- package/resources/libpostal/dictionaries/fr/entrances.txt +2 -0
- package/resources/libpostal/dictionaries/fr/level_types_basement.txt +1 -0
- package/resources/libpostal/dictionaries/fr/level_types_mezzanine.txt +1 -0
- package/resources/libpostal/dictionaries/fr/level_types_numbered.txt +2 -0
- package/resources/libpostal/dictionaries/fr/level_types_standalone.txt +8 -0
- package/resources/libpostal/dictionaries/fr/level_types_sub_basement.txt +1 -0
- package/resources/libpostal/dictionaries/fr/near.txt +20 -0
- package/resources/libpostal/dictionaries/fr/no_number.txt +1 -0
- package/resources/libpostal/dictionaries/fr/number.txt +1 -0
- package/resources/libpostal/dictionaries/fr/people.txt +1 -0
- package/resources/libpostal/dictionaries/fr/personal_titles.txt +57 -0
- package/resources/libpostal/dictionaries/fr/place_names.txt +147 -0
- package/resources/libpostal/dictionaries/fr/post_office.txt +3 -0
- package/resources/libpostal/dictionaries/fr/qualifiers.txt +19 -0
- package/resources/libpostal/dictionaries/fr/staircases.txt +1 -0
- package/resources/libpostal/dictionaries/fr/stopwords.txt +28 -0
- package/resources/libpostal/dictionaries/fr/street_types.txt +165 -0
- package/resources/libpostal/dictionaries/fr/synonyms.txt +14 -0
- package/resources/libpostal/dictionaries/fr/toponyms.txt +13 -0
- package/resources/libpostal/dictionaries/fr/unit_directions.txt +4 -0
- package/resources/libpostal/dictionaries/fr/unit_types_numbered.txt +10 -0
- package/resources/libpostal/dictionaries/ga/building_types.txt +16 -0
- package/resources/libpostal/dictionaries/ga/level_types_standalone.txt +1 -0
- package/resources/libpostal/dictionaries/ga/personal_titles.txt +1 -0
- package/resources/libpostal/dictionaries/ga/place_names.txt +10 -0
- package/resources/libpostal/dictionaries/ga/street_types.txt +95 -0
- package/resources/libpostal/dictionaries/ga/unit_types_numbered.txt +1 -0
- package/resources/libpostal/dictionaries/gd/building_types.txt +8 -0
- package/resources/libpostal/dictionaries/gd/directionals.txt +6 -0
- package/resources/libpostal/dictionaries/gd/place_names.txt +7 -0
- package/resources/libpostal/dictionaries/gd/qualifiers.txt +1 -0
- package/resources/libpostal/dictionaries/gd/stopwords.txt +2 -0
- package/resources/libpostal/dictionaries/gd/street_types.txt +52 -0
- package/resources/libpostal/dictionaries/gl/ambiguous_expansions.txt +6 -0
- package/resources/libpostal/dictionaries/gl/directionals.txt +8 -0
- package/resources/libpostal/dictionaries/gl/personal_titles.txt +2 -0
- package/resources/libpostal/dictionaries/gl/stopwords.txt +39 -0
- package/resources/libpostal/dictionaries/gl/street_types.txt +26 -0
- package/resources/libpostal/dictionaries/gl/unit_directions.txt +2 -0
- package/resources/libpostal/dictionaries/gsw/ambiguous_expansions.txt +1 -0
- package/resources/libpostal/dictionaries/gsw/concatenated_suffixes_separable.txt +8 -0
- package/resources/libpostal/dictionaries/gsw/street_types.txt +8 -0
- package/resources/libpostal/dictionaries/he/entrances.txt +2 -0
- package/resources/libpostal/dictionaries/he/level_types_basement.txt +2 -0
- package/resources/libpostal/dictionaries/he/level_types_numbered.txt +2 -0
- package/resources/libpostal/dictionaries/he/level_types_standalone.txt +2 -0
- package/resources/libpostal/dictionaries/he/personal_titles.txt +2 -0
- package/resources/libpostal/dictionaries/he/post_office.txt +2 -0
- package/resources/libpostal/dictionaries/he/street_types.txt +8 -0
- package/resources/libpostal/dictionaries/he/unit_types_numbered.txt +2 -0
- package/resources/libpostal/dictionaries/hi/street_types.txt +3 -0
- package/resources/libpostal/dictionaries/hr/ambiguous_expansions.txt +6 -0
- package/resources/libpostal/dictionaries/hr/building_types.txt +1 -0
- package/resources/libpostal/dictionaries/hr/cross_streets.txt +6 -0
- package/resources/libpostal/dictionaries/hr/directionals.txt +4 -0
- package/resources/libpostal/dictionaries/hr/entrances.txt +1 -0
- package/resources/libpostal/dictionaries/hr/level_types_basement.txt +1 -0
- package/resources/libpostal/dictionaries/hr/level_types_mezzanine.txt +1 -0
- package/resources/libpostal/dictionaries/hr/level_types_numbered.txt +2 -0
- package/resources/libpostal/dictionaries/hr/level_types_standalone.txt +2 -0
- package/resources/libpostal/dictionaries/hr/near.txt +5 -0
- package/resources/libpostal/dictionaries/hr/no_number.txt +1 -0
- package/resources/libpostal/dictionaries/hr/personal_titles.txt +6 -0
- package/resources/libpostal/dictionaries/hr/place_names.txt +18 -0
- package/resources/libpostal/dictionaries/hr/post_office.txt +1 -0
- package/resources/libpostal/dictionaries/hr/qualifiers.txt +1 -0
- package/resources/libpostal/dictionaries/hr/staircases.txt +1 -0
- package/resources/libpostal/dictionaries/hr/stopwords.txt +1 -0
- package/resources/libpostal/dictionaries/hr/street_types.txt +12 -0
- package/resources/libpostal/dictionaries/hr/unit_directions.txt +2 -0
- package/resources/libpostal/dictionaries/hr/unit_types_numbered.txt +4 -0
- package/resources/libpostal/dictionaries/hu/ambiguous_expansions.txt +6 -0
- package/resources/libpostal/dictionaries/hu/cross_streets.txt +5 -0
- package/resources/libpostal/dictionaries/hu/directionals.txt +8 -0
- package/resources/libpostal/dictionaries/hu/level_types_basement.txt +4 -0
- package/resources/libpostal/dictionaries/hu/level_types_mezzanine.txt +2 -0
- package/resources/libpostal/dictionaries/hu/level_types_numbered.txt +1 -0
- package/resources/libpostal/dictionaries/hu/level_types_standalone.txt +1 -0
- package/resources/libpostal/dictionaries/hu/near.txt +3 -0
- package/resources/libpostal/dictionaries/hu/number.txt +1 -0
- package/resources/libpostal/dictionaries/hu/personal_titles.txt +1 -0
- package/resources/libpostal/dictionaries/hu/post_office.txt +1 -0
- package/resources/libpostal/dictionaries/hu/stopwords.txt +4 -0
- package/resources/libpostal/dictionaries/hu/street_types.txt +21 -0
- package/resources/libpostal/dictionaries/hu/unit_directions.txt +2 -0
- package/resources/libpostal/dictionaries/hu/unit_types_numbered.txt +3 -0
- package/resources/libpostal/dictionaries/id/academic_degrees.txt +78 -0
- package/resources/libpostal/dictionaries/id/ambiguous_expansions.txt +64 -0
- package/resources/libpostal/dictionaries/id/building_types.txt +7 -0
- package/resources/libpostal/dictionaries/id/chains.txt +5 -0
- package/resources/libpostal/dictionaries/id/company_types.txt +15 -0
- package/resources/libpostal/dictionaries/id/cross_streets.txt +6 -0
- package/resources/libpostal/dictionaries/id/directionals.txt +9 -0
- package/resources/libpostal/dictionaries/id/entrances.txt +3 -0
- package/resources/libpostal/dictionaries/id/level_types_numbered.txt +1 -0
- package/resources/libpostal/dictionaries/id/level_types_standalone.txt +3 -0
- package/resources/libpostal/dictionaries/id/near.txt +3 -0
- package/resources/libpostal/dictionaries/id/number.txt +1 -0
- package/resources/libpostal/dictionaries/id/personal_titles.txt +34 -0
- package/resources/libpostal/dictionaries/id/place_names.txt +145 -0
- package/resources/libpostal/dictionaries/id/qualifiers.txt +13 -0
- package/resources/libpostal/dictionaries/id/stopwords.txt +9 -0
- package/resources/libpostal/dictionaries/id/street_types.txt +7 -0
- package/resources/libpostal/dictionaries/id/synonyms.txt +22 -0
- package/resources/libpostal/dictionaries/id/toponyms.txt +34 -0
- package/resources/libpostal/dictionaries/id/unit_directions.txt +4 -0
- package/resources/libpostal/dictionaries/id/unit_types_numbered.txt +16 -0
- package/resources/libpostal/dictionaries/id/unit_types_standalone.txt +9 -0
- package/resources/libpostal/dictionaries/is/ambiguous_expansions.txt +6 -0
- package/resources/libpostal/dictionaries/is/concatenated_suffixes_inseparable.txt +29 -0
- package/resources/libpostal/dictionaries/is/cross_streets.txt +4 -0
- package/resources/libpostal/dictionaries/is/directionals.txt +4 -0
- package/resources/libpostal/dictionaries/is/entrances.txt +1 -0
- package/resources/libpostal/dictionaries/is/level_types_basement.txt +1 -0
- package/resources/libpostal/dictionaries/is/level_types_numbered.txt +1 -0
- package/resources/libpostal/dictionaries/is/level_types_standalone.txt +1 -0
- package/resources/libpostal/dictionaries/is/near.txt +6 -0
- package/resources/libpostal/dictionaries/is/number.txt +1 -0
- package/resources/libpostal/dictionaries/is/post_office.txt +1 -0
- package/resources/libpostal/dictionaries/is/qualifiers.txt +2 -0
- package/resources/libpostal/dictionaries/is/staircases.txt +1 -0
- package/resources/libpostal/dictionaries/is/stopwords.txt +1 -0
- package/resources/libpostal/dictionaries/is/street_types.txt +29 -0
- package/resources/libpostal/dictionaries/is/unit_directions.txt +2 -0
- package/resources/libpostal/dictionaries/is/unit_types_numbered.txt +1 -0
- package/resources/libpostal/dictionaries/it/academic_degrees.txt +1 -0
- package/resources/libpostal/dictionaries/it/ambiguous_expansions.txt +8 -0
- package/resources/libpostal/dictionaries/it/building_types.txt +5 -0
- package/resources/libpostal/dictionaries/it/chains.txt +5 -0
- package/resources/libpostal/dictionaries/it/company_types.txt +16 -0
- package/resources/libpostal/dictionaries/it/cross_streets.txt +7 -0
- package/resources/libpostal/dictionaries/it/directionals.txt +11 -0
- package/resources/libpostal/dictionaries/it/elisions.txt +4 -0
- package/resources/libpostal/dictionaries/it/entrances.txt +1 -0
- package/resources/libpostal/dictionaries/it/level_types_basement.txt +2 -0
- package/resources/libpostal/dictionaries/it/level_types_numbered.txt +2 -0
- package/resources/libpostal/dictionaries/it/level_types_standalone.txt +2 -0
- package/resources/libpostal/dictionaries/it/near.txt +10 -0
- package/resources/libpostal/dictionaries/it/no_number.txt +2 -0
- package/resources/libpostal/dictionaries/it/number.txt +1 -0
- package/resources/libpostal/dictionaries/it/personal_titles.txt +72 -0
- package/resources/libpostal/dictionaries/it/place_names.txt +203 -0
- package/resources/libpostal/dictionaries/it/post_office.txt +2 -0
- package/resources/libpostal/dictionaries/it/qualifiers.txt +16 -0
- package/resources/libpostal/dictionaries/it/staircases.txt +1 -0
- package/resources/libpostal/dictionaries/it/stopwords.txt +47 -0
- package/resources/libpostal/dictionaries/it/street_types.txt +151 -0
- package/resources/libpostal/dictionaries/it/synonyms.txt +115 -0
- package/resources/libpostal/dictionaries/it/toponyms.txt +110 -0
- package/resources/libpostal/dictionaries/it/unit_types_numbered.txt +9 -0
- package/resources/libpostal/dictionaries/ja/ambiguous_expansions.txt +5 -0
- package/resources/libpostal/dictionaries/ja/building_types.txt +6 -0
- package/resources/libpostal/dictionaries/ja/chains.txt +27 -0
- package/resources/libpostal/dictionaries/ja/directionals.txt +16 -0
- package/resources/libpostal/dictionaries/ja/level_types_numbered.txt +3 -0
- package/resources/libpostal/dictionaries/ja/number.txt +2 -0
- package/resources/libpostal/dictionaries/ja/place_names.txt +16 -0
- package/resources/libpostal/dictionaries/ja/post_office.txt +2 -0
- package/resources/libpostal/dictionaries/ja/postcodes.txt +2 -0
- package/resources/libpostal/dictionaries/ja/qualifiers.txt +38 -0
- package/resources/libpostal/dictionaries/ja/street_types.txt +67 -0
- package/resources/libpostal/dictionaries/ka/ambiguous_expansions.txt +2 -0
- package/resources/libpostal/dictionaries/ka/personal_titles.txt +4 -0
- package/resources/libpostal/dictionaries/ka/place_names.txt +7 -0
- package/resources/libpostal/dictionaries/ka/stopwords.txt +1 -0
- package/resources/libpostal/dictionaries/ka/street_types.txt +12 -0
- package/resources/libpostal/dictionaries/ko/directionals.txt +31 -0
- package/resources/libpostal/dictionaries/ko/level_types_numbered.txt +2 -0
- package/resources/libpostal/dictionaries/ko/number.txt +3 -0
- package/resources/libpostal/dictionaries/ko/post_office.txt +2 -0
- package/resources/libpostal/dictionaries/ko/postcodes.txt +2 -0
- package/resources/libpostal/dictionaries/ko/qualifiers.txt +6 -0
- package/resources/libpostal/dictionaries/ko/street_types.txt +8 -0
- package/resources/libpostal/dictionaries/lb/concatenated_suffixes_separable.txt +3 -0
- package/resources/libpostal/dictionaries/lb/street_types.txt +3 -0
- package/resources/libpostal/dictionaries/lt/ambiguous_expansions.txt +6 -0
- package/resources/libpostal/dictionaries/lt/building_types.txt +1 -0
- package/resources/libpostal/dictionaries/lt/cross_streets.txt +4 -0
- package/resources/libpostal/dictionaries/lt/directionals.txt +4 -0
- package/resources/libpostal/dictionaries/lt/entrances.txt +1 -0
- package/resources/libpostal/dictionaries/lt/level_types_basement.txt +2 -0
- package/resources/libpostal/dictionaries/lt/level_types_numbered.txt +2 -0
- package/resources/libpostal/dictionaries/lt/level_types_standalone.txt +1 -0
- package/resources/libpostal/dictionaries/lt/number.txt +1 -0
- package/resources/libpostal/dictionaries/lt/post_office.txt +1 -0
- package/resources/libpostal/dictionaries/lt/qualifiers.txt +5 -0
- package/resources/libpostal/dictionaries/lt/staircases.txt +1 -0
- package/resources/libpostal/dictionaries/lt/stopwords.txt +1 -0
- package/resources/libpostal/dictionaries/lt/street_types.txt +7 -0
- package/resources/libpostal/dictionaries/lt/unit_directions.txt +2 -0
- package/resources/libpostal/dictionaries/lt/unit_types_numbered.txt +3 -0
- package/resources/libpostal/dictionaries/lv/ambiguous_expansions.txt +6 -0
- package/resources/libpostal/dictionaries/lv/cross_streets.txt +5 -0
- package/resources/libpostal/dictionaries/lv/directionals.txt +4 -0
- package/resources/libpostal/dictionaries/lv/entrances.txt +1 -0
- package/resources/libpostal/dictionaries/lv/level_types_basement.txt +2 -0
- package/resources/libpostal/dictionaries/lv/level_types_numbered.txt +1 -0
- package/resources/libpostal/dictionaries/lv/level_types_standalone.txt +1 -0
- package/resources/libpostal/dictionaries/lv/number.txt +1 -0
- package/resources/libpostal/dictionaries/lv/place_names.txt +2 -0
- package/resources/libpostal/dictionaries/lv/staircases.txt +2 -0
- package/resources/libpostal/dictionaries/lv/stopwords.txt +1 -0
- package/resources/libpostal/dictionaries/lv/street_types.txt +5 -0
- package/resources/libpostal/dictionaries/lv/unit_directions.txt +2 -0
- package/resources/libpostal/dictionaries/lv/unit_types_numbered.txt +3 -0
- package/resources/libpostal/dictionaries/ms/ambiguous_expansions.txt +1 -0
- package/resources/libpostal/dictionaries/ms/building_types.txt +10 -0
- package/resources/libpostal/dictionaries/ms/company_types.txt +8 -0
- package/resources/libpostal/dictionaries/ms/directionals.txt +9 -0
- package/resources/libpostal/dictionaries/ms/given_names.txt +3 -0
- package/resources/libpostal/dictionaries/ms/level_types_numbered.txt +2 -0
- package/resources/libpostal/dictionaries/ms/personal_titles.txt +92 -0
- package/resources/libpostal/dictionaries/ms/place_names.txt +145 -0
- package/resources/libpostal/dictionaries/ms/post_office.txt +3 -0
- package/resources/libpostal/dictionaries/ms/qualifiers.txt +6 -0
- package/resources/libpostal/dictionaries/ms/stopwords.txt +1 -0
- package/resources/libpostal/dictionaries/ms/street_types.txt +35 -0
- package/resources/libpostal/dictionaries/ms/synonyms.txt +27 -0
- package/resources/libpostal/dictionaries/mt/ambiguous_expansions.txt +1 -0
- package/resources/libpostal/dictionaries/mt/number.txt +1 -0
- package/resources/libpostal/dictionaries/mt/personal_titles.txt +6 -0
- package/resources/libpostal/dictionaries/mt/place_names.txt +1 -0
- package/resources/libpostal/dictionaries/mt/stopwords.txt +5 -0
- package/resources/libpostal/dictionaries/mt/street_types.txt +6 -0
- package/resources/libpostal/dictionaries/nb/ambiguous_expansions.txt +11 -0
- package/resources/libpostal/dictionaries/nb/building_types.txt +3 -0
- package/resources/libpostal/dictionaries/nb/concatenated_suffixes_inseparable.txt +13 -0
- package/resources/libpostal/dictionaries/nb/concatenated_suffixes_separable.txt +6 -0
- package/resources/libpostal/dictionaries/nb/cross_streets.txt +5 -0
- package/resources/libpostal/dictionaries/nb/directionals.txt +13 -0
- package/resources/libpostal/dictionaries/nb/entrances.txt +1 -0
- package/resources/libpostal/dictionaries/nb/level_types_numbered.txt +5 -0
- package/resources/libpostal/dictionaries/nb/near.txt +7 -0
- package/resources/libpostal/dictionaries/nb/number.txt +1 -0
- package/resources/libpostal/dictionaries/nb/personal_titles.txt +1 -0
- package/resources/libpostal/dictionaries/nb/post_office.txt +1 -0
- package/resources/libpostal/dictionaries/nb/staircases.txt +2 -0
- package/resources/libpostal/dictionaries/nb/stopwords.txt +34 -0
- package/resources/libpostal/dictionaries/nb/street_types.txt +20 -0
- package/resources/libpostal/dictionaries/nb/unit_directions.txt +2 -0
- package/resources/libpostal/dictionaries/nb/unit_types_numbered.txt +1 -0
- package/resources/libpostal/dictionaries/nl/ambiguous_expansions.txt +10 -0
- package/resources/libpostal/dictionaries/nl/building_types.txt +1 -0
- package/resources/libpostal/dictionaries/nl/chains.txt +1 -0
- package/resources/libpostal/dictionaries/nl/concatenated_suffixes_inseparable.txt +3 -0
- package/resources/libpostal/dictionaries/nl/concatenated_suffixes_separable.txt +13 -0
- package/resources/libpostal/dictionaries/nl/cross_streets.txt +4 -0
- package/resources/libpostal/dictionaries/nl/directionals.txt +20 -0
- package/resources/libpostal/dictionaries/nl/entrances.txt +1 -0
- package/resources/libpostal/dictionaries/nl/level_types_numbered.txt +2 -0
- package/resources/libpostal/dictionaries/nl/level_types_standalone.txt +5 -0
- package/resources/libpostal/dictionaries/nl/near.txt +7 -0
- package/resources/libpostal/dictionaries/nl/number.txt +1 -0
- package/resources/libpostal/dictionaries/nl/personal_titles.txt +32 -0
- package/resources/libpostal/dictionaries/nl/place_names.txt +81 -0
- package/resources/libpostal/dictionaries/nl/post_office.txt +1 -0
- package/resources/libpostal/dictionaries/nl/qualifiers.txt +4 -0
- package/resources/libpostal/dictionaries/nl/staircases.txt +2 -0
- package/resources/libpostal/dictionaries/nl/stopwords.txt +38 -0
- package/resources/libpostal/dictionaries/nl/street_types.txt +22 -0
- package/resources/libpostal/dictionaries/nl/synonyms.txt +2 -0
- package/resources/libpostal/dictionaries/nl/unit_directions.txt +2 -0
- package/resources/libpostal/dictionaries/nl/unit_types_numbered.txt +3 -0
- package/resources/libpostal/dictionaries/oc/elisions.txt +1 -0
- package/resources/libpostal/dictionaries/oc/stopwords.txt +14 -0
- package/resources/libpostal/dictionaries/oc/street_types.txt +5 -0
- package/resources/libpostal/dictionaries/pap/personal_titles.txt +2 -0
- package/resources/libpostal/dictionaries/pap/street_types.txt +2 -0
- package/resources/libpostal/dictionaries/pl/academic_degrees.txt +2 -0
- package/resources/libpostal/dictionaries/pl/ambiguous_expansions.txt +9 -0
- package/resources/libpostal/dictionaries/pl/building_types.txt +1 -0
- package/resources/libpostal/dictionaries/pl/chains.txt +3 -0
- package/resources/libpostal/dictionaries/pl/company_types.txt +4 -0
- package/resources/libpostal/dictionaries/pl/cross_streets.txt +6 -0
- package/resources/libpostal/dictionaries/pl/directionals.txt +8 -0
- package/resources/libpostal/dictionaries/pl/entrances.txt +1 -0
- package/resources/libpostal/dictionaries/pl/house_numbers.txt +1 -0
- package/resources/libpostal/dictionaries/pl/level_types_basement.txt +1 -0
- package/resources/libpostal/dictionaries/pl/level_types_numbered.txt +1 -0
- package/resources/libpostal/dictionaries/pl/level_types_standalone.txt +1 -0
- package/resources/libpostal/dictionaries/pl/near.txt +11 -0
- package/resources/libpostal/dictionaries/pl/number.txt +1 -0
- package/resources/libpostal/dictionaries/pl/personal_suffixes.txt +2 -0
- package/resources/libpostal/dictionaries/pl/personal_titles.txt +54 -0
- package/resources/libpostal/dictionaries/pl/place_names.txt +31 -0
- package/resources/libpostal/dictionaries/pl/post_office.txt +1 -0
- package/resources/libpostal/dictionaries/pl/qualifiers.txt +9 -0
- package/resources/libpostal/dictionaries/pl/staircases.txt +1 -0
- package/resources/libpostal/dictionaries/pl/stopwords.txt +3 -0
- package/resources/libpostal/dictionaries/pl/street_types.txt +12 -0
- package/resources/libpostal/dictionaries/pl/synonyms.txt +19 -0
- package/resources/libpostal/dictionaries/pl/toponyms.txt +1 -0
- package/resources/libpostal/dictionaries/pl/unit_directions.txt +2 -0
- package/resources/libpostal/dictionaries/pl/unit_types_numbered.txt +2 -0
- package/resources/libpostal/dictionaries/pt/ambiguous_expansions.txt +12 -0
- package/resources/libpostal/dictionaries/pt/building_types.txt +7 -0
- package/resources/libpostal/dictionaries/pt/company_types.txt +31 -0
- package/resources/libpostal/dictionaries/pt/cross_streets.txt +8 -0
- package/resources/libpostal/dictionaries/pt/directionals.txt +8 -0
- package/resources/libpostal/dictionaries/pt/elisions.txt +1 -0
- package/resources/libpostal/dictionaries/pt/entrances.txt +1 -0
- package/resources/libpostal/dictionaries/pt/level_types_basement.txt +1 -0
- package/resources/libpostal/dictionaries/pt/level_types_mezzanine.txt +1 -0
- package/resources/libpostal/dictionaries/pt/level_types_numbered.txt +3 -0
- package/resources/libpostal/dictionaries/pt/level_types_standalone.txt +5 -0
- package/resources/libpostal/dictionaries/pt/level_types_sub_basement.txt +1 -0
- package/resources/libpostal/dictionaries/pt/near.txt +13 -0
- package/resources/libpostal/dictionaries/pt/no_number.txt +1 -0
- package/resources/libpostal/dictionaries/pt/number.txt +1 -0
- package/resources/libpostal/dictionaries/pt/personal_suffixes.txt +3 -0
- package/resources/libpostal/dictionaries/pt/personal_titles.txt +101 -0
- package/resources/libpostal/dictionaries/pt/place_names.txt +52 -0
- package/resources/libpostal/dictionaries/pt/post_office.txt +2 -0
- package/resources/libpostal/dictionaries/pt/postcodes.txt +2 -0
- package/resources/libpostal/dictionaries/pt/qualifiers.txt +8 -0
- package/resources/libpostal/dictionaries/pt/staircases.txt +1 -0
- package/resources/libpostal/dictionaries/pt/stopwords.txt +35 -0
- package/resources/libpostal/dictionaries/pt/street_types.txt +53 -0
- package/resources/libpostal/dictionaries/pt/synonyms.txt +21 -0
- package/resources/libpostal/dictionaries/pt/toponyms.txt +28 -0
- package/resources/libpostal/dictionaries/pt/unit_directions.txt +4 -0
- package/resources/libpostal/dictionaries/pt/unit_types_numbered.txt +10 -0
- package/resources/libpostal/dictionaries/pt/unit_types_standalone.txt +1 -0
- package/resources/libpostal/dictionaries/ro/ambiguous_expansions.txt +5 -0
- package/resources/libpostal/dictionaries/ro/cross_streets.txt +5 -0
- package/resources/libpostal/dictionaries/ro/directionals.txt +4 -0
- package/resources/libpostal/dictionaries/ro/entrances.txt +1 -0
- package/resources/libpostal/dictionaries/ro/level_types_numbered.txt +1 -0
- package/resources/libpostal/dictionaries/ro/level_types_standalone.txt +1 -0
- package/resources/libpostal/dictionaries/ro/near.txt +7 -0
- package/resources/libpostal/dictionaries/ro/no_number.txt +1 -0
- package/resources/libpostal/dictionaries/ro/number.txt +1 -0
- package/resources/libpostal/dictionaries/ro/personal_titles.txt +14 -0
- package/resources/libpostal/dictionaries/ro/post_office.txt +1 -0
- package/resources/libpostal/dictionaries/ro/qualifiers.txt +1 -0
- package/resources/libpostal/dictionaries/ro/staircases.txt +1 -0
- package/resources/libpostal/dictionaries/ro/stopwords.txt +2 -0
- package/resources/libpostal/dictionaries/ro/street_types.txt +13 -0
- package/resources/libpostal/dictionaries/ro/unit_types_numbered.txt +4 -0
- package/resources/libpostal/dictionaries/ru/ambiguous_expansions.txt +18 -0
- package/resources/libpostal/dictionaries/ru/building_types.txt +2 -0
- package/resources/libpostal/dictionaries/ru/chains.txt +42 -0
- package/resources/libpostal/dictionaries/ru/company_types.txt +9 -0
- package/resources/libpostal/dictionaries/ru/cross_streets.txt +11 -0
- package/resources/libpostal/dictionaries/ru/directionals.txt +16 -0
- package/resources/libpostal/dictionaries/ru/entrances.txt +2 -0
- package/resources/libpostal/dictionaries/ru/house_numbers.txt +2 -0
- package/resources/libpostal/dictionaries/ru/level_types_basement.txt +4 -0
- package/resources/libpostal/dictionaries/ru/level_types_numbered.txt +4 -0
- package/resources/libpostal/dictionaries/ru/level_types_standalone.txt +4 -0
- package/resources/libpostal/dictionaries/ru/near.txt +26 -0
- package/resources/libpostal/dictionaries/ru/no_number.txt +1 -0
- package/resources/libpostal/dictionaries/ru/number.txt +2 -0
- package/resources/libpostal/dictionaries/ru/personal_titles.txt +6 -0
- package/resources/libpostal/dictionaries/ru/place_names.txt +160 -0
- package/resources/libpostal/dictionaries/ru/post_office.txt +2 -0
- package/resources/libpostal/dictionaries/ru/qualifiers.txt +31 -0
- package/resources/libpostal/dictionaries/ru/staircases.txt +2 -0
- package/resources/libpostal/dictionaries/ru/stopwords.txt +1 -0
- package/resources/libpostal/dictionaries/ru/street_types.txt +28 -0
- package/resources/libpostal/dictionaries/ru/unit_directions.txt +4 -0
- package/resources/libpostal/dictionaries/ru/unit_types_numbered.txt +10 -0
- package/resources/libpostal/dictionaries/si/place_names.txt +8 -0
- package/resources/libpostal/dictionaries/si/qualifiers.txt +4 -0
- package/resources/libpostal/dictionaries/si/street_types.txt +2 -0
- package/resources/libpostal/dictionaries/sk/ambiguous_expansions.txt +6 -0
- package/resources/libpostal/dictionaries/sk/cross_streets.txt +8 -0
- package/resources/libpostal/dictionaries/sk/directionals.txt +21 -0
- package/resources/libpostal/dictionaries/sk/entrances.txt +1 -0
- package/resources/libpostal/dictionaries/sk/house_numbers.txt +1 -0
- package/resources/libpostal/dictionaries/sk/level_types_basement.txt +1 -0
- package/resources/libpostal/dictionaries/sk/level_types_numbered.txt +4 -0
- package/resources/libpostal/dictionaries/sk/level_types_standalone.txt +1 -0
- package/resources/libpostal/dictionaries/sk/near.txt +13 -0
- package/resources/libpostal/dictionaries/sk/number.txt +1 -0
- package/resources/libpostal/dictionaries/sk/personal_titles.txt +16 -0
- package/resources/libpostal/dictionaries/sk/place_names.txt +28 -0
- package/resources/libpostal/dictionaries/sk/post_office.txt +1 -0
- package/resources/libpostal/dictionaries/sk/qualifiers.txt +3 -0
- package/resources/libpostal/dictionaries/sk/staircases.txt +1 -0
- package/resources/libpostal/dictionaries/sk/stopwords.txt +29 -0
- package/resources/libpostal/dictionaries/sk/street_types.txt +20 -0
- package/resources/libpostal/dictionaries/sk/toponyms.txt +1 -0
- package/resources/libpostal/dictionaries/sk/unit_directions.txt +2 -0
- package/resources/libpostal/dictionaries/sk/unit_types_numbered.txt +3 -0
- package/resources/libpostal/dictionaries/sl/ambiguous_expansions.txt +6 -0
- package/resources/libpostal/dictionaries/sl/chains.txt +1 -0
- package/resources/libpostal/dictionaries/sl/cross_streets.txt +5 -0
- package/resources/libpostal/dictionaries/sl/directionals.txt +4 -0
- package/resources/libpostal/dictionaries/sl/entrances.txt +1 -0
- package/resources/libpostal/dictionaries/sl/level_types_basement.txt +1 -0
- package/resources/libpostal/dictionaries/sl/level_types_numbered.txt +1 -0
- package/resources/libpostal/dictionaries/sl/level_types_standalone.txt +2 -0
- package/resources/libpostal/dictionaries/sl/near.txt +7 -0
- package/resources/libpostal/dictionaries/sl/no_number.txt +1 -0
- package/resources/libpostal/dictionaries/sl/number.txt +1 -0
- package/resources/libpostal/dictionaries/sl/personal_titles.txt +3 -0
- package/resources/libpostal/dictionaries/sl/place_names.txt +1 -0
- package/resources/libpostal/dictionaries/sl/post_office.txt +1 -0
- package/resources/libpostal/dictionaries/sl/staircases.txt +1 -0
- package/resources/libpostal/dictionaries/sl/stopwords.txt +7 -0
- package/resources/libpostal/dictionaries/sl/street_types.txt +4 -0
- package/resources/libpostal/dictionaries/sl/synonyms.txt +13 -0
- package/resources/libpostal/dictionaries/sl/unit_directions.txt +2 -0
- package/resources/libpostal/dictionaries/sl/unit_types_numbered.txt +3 -0
- package/resources/libpostal/dictionaries/sr/ambiguous_expansions.txt +9 -0
- package/resources/libpostal/dictionaries/sr/cross_streets.txt +10 -0
- package/resources/libpostal/dictionaries/sr/directionals.txt +8 -0
- package/resources/libpostal/dictionaries/sr/entrances.txt +2 -0
- package/resources/libpostal/dictionaries/sr/level_types_basement.txt +2 -0
- package/resources/libpostal/dictionaries/sr/level_types_numbered.txt +6 -0
- package/resources/libpostal/dictionaries/sr/level_types_standalone.txt +4 -0
- package/resources/libpostal/dictionaries/sr/number.txt +2 -0
- package/resources/libpostal/dictionaries/sr/personal_titles.txt +14 -0
- package/resources/libpostal/dictionaries/sr/place_names.txt +12 -0
- package/resources/libpostal/dictionaries/sr/post_office.txt +6 -0
- package/resources/libpostal/dictionaries/sr/staircases.txt +2 -0
- package/resources/libpostal/dictionaries/sr/stopwords.txt +2 -0
- package/resources/libpostal/dictionaries/sr/street_types.txt +17 -0
- package/resources/libpostal/dictionaries/sr/unit_directions.txt +4 -0
- package/resources/libpostal/dictionaries/sr/unit_types_numbered.txt +8 -0
- package/resources/libpostal/dictionaries/sv/ambiguous_expansions.txt +9 -0
- package/resources/libpostal/dictionaries/sv/company_types.txt +4 -0
- package/resources/libpostal/dictionaries/sv/concatenated_suffixes_inseparable.txt +5 -0
- package/resources/libpostal/dictionaries/sv/concatenated_suffixes_separable.txt +8 -0
- package/resources/libpostal/dictionaries/sv/cross_streets.txt +5 -0
- package/resources/libpostal/dictionaries/sv/directionals.txt +8 -0
- package/resources/libpostal/dictionaries/sv/entrances.txt +2 -0
- package/resources/libpostal/dictionaries/sv/level_types_numbered.txt +7 -0
- package/resources/libpostal/dictionaries/sv/level_types_standalone.txt +5 -0
- package/resources/libpostal/dictionaries/sv/near.txt +11 -0
- package/resources/libpostal/dictionaries/sv/number.txt +1 -0
- package/resources/libpostal/dictionaries/sv/personal_titles.txt +3 -0
- package/resources/libpostal/dictionaries/sv/post_office.txt +2 -0
- package/resources/libpostal/dictionaries/sv/staircases.txt +3 -0
- package/resources/libpostal/dictionaries/sv/stopwords.txt +25 -0
- package/resources/libpostal/dictionaries/sv/street_types.txt +13 -0
- package/resources/libpostal/dictionaries/sv/synonyms.txt +4 -0
- package/resources/libpostal/dictionaries/sv/unit_directions.txt +4 -0
- package/resources/libpostal/dictionaries/sv/unit_types_numbered.txt +5 -0
- package/resources/libpostal/dictionaries/th/chains.txt +2 -0
- package/resources/libpostal/dictionaries/th/street_types.txt +10 -0
- package/resources/libpostal/dictionaries/tr/ambiguous_expansions.txt +5 -0
- package/resources/libpostal/dictionaries/tr/chains.txt +1 -0
- package/resources/libpostal/dictionaries/tr/cross_streets.txt +4 -0
- package/resources/libpostal/dictionaries/tr/directionals.txt +4 -0
- package/resources/libpostal/dictionaries/tr/entrances.txt +1 -0
- package/resources/libpostal/dictionaries/tr/level_types_basement.txt +1 -0
- package/resources/libpostal/dictionaries/tr/level_types_mezzanine.txt +1 -0
- package/resources/libpostal/dictionaries/tr/level_types_numbered.txt +1 -0
- package/resources/libpostal/dictionaries/tr/level_types_standalone.txt +1 -0
- package/resources/libpostal/dictionaries/tr/number.txt +2 -0
- package/resources/libpostal/dictionaries/tr/personal_titles.txt +4 -0
- package/resources/libpostal/dictionaries/tr/place_names.txt +2 -0
- package/resources/libpostal/dictionaries/tr/post_office.txt +1 -0
- package/resources/libpostal/dictionaries/tr/qualifiers.txt +5 -0
- package/resources/libpostal/dictionaries/tr/staircases.txt +1 -0
- package/resources/libpostal/dictionaries/tr/stopwords.txt +1 -0
- package/resources/libpostal/dictionaries/tr/street_types.txt +10 -0
- package/resources/libpostal/dictionaries/tr/unit_directions.txt +2 -0
- package/resources/libpostal/dictionaries/tr/unit_types_numbered.txt +4 -0
- package/resources/libpostal/dictionaries/uk/ambiguous_expansions.txt +8 -0
- package/resources/libpostal/dictionaries/uk/chains.txt +7 -0
- package/resources/libpostal/dictionaries/uk/cross_streets.txt +10 -0
- package/resources/libpostal/dictionaries/uk/directionals.txt +8 -0
- package/resources/libpostal/dictionaries/uk/entrances.txt +2 -0
- package/resources/libpostal/dictionaries/uk/house_numbers.txt +4 -0
- package/resources/libpostal/dictionaries/uk/level_types_basement.txt +4 -0
- package/resources/libpostal/dictionaries/uk/level_types_numbered.txt +4 -0
- package/resources/libpostal/dictionaries/uk/level_types_standalone.txt +4 -0
- package/resources/libpostal/dictionaries/uk/near.txt +24 -0
- package/resources/libpostal/dictionaries/uk/number.txt +2 -0
- package/resources/libpostal/dictionaries/uk/personal_titles.txt +9 -0
- package/resources/libpostal/dictionaries/uk/place_names.txt +161 -0
- package/resources/libpostal/dictionaries/uk/post_office.txt +2 -0
- package/resources/libpostal/dictionaries/uk/qualifiers.txt +8 -0
- package/resources/libpostal/dictionaries/uk/staircases.txt +2 -0
- package/resources/libpostal/dictionaries/uk/stopwords.txt +2 -0
- package/resources/libpostal/dictionaries/uk/street_types.txt +26 -0
- package/resources/libpostal/dictionaries/uk/unit_directions.txt +4 -0
- package/resources/libpostal/dictionaries/uk/unit_types_numbered.txt +10 -0
- package/resources/libpostal/dictionaries/ur/street_types.txt +7 -0
- package/resources/libpostal/dictionaries/vi/ambiguous_expansions.txt +3 -0
- package/resources/libpostal/dictionaries/vi/personal_titles.txt +1 -0
- package/resources/libpostal/dictionaries/vi/place_names.txt +29 -0
- package/resources/libpostal/dictionaries/vi/qualifiers.txt +5 -0
- package/resources/libpostal/dictionaries/vi/street_types.txt +10 -0
- package/resources/libpostal/dictionaries/zh/building_types.txt +2 -0
- package/resources/libpostal/dictionaries/zh/chains.txt +2 -0
- package/resources/libpostal/dictionaries/zh/directionals.txt +20 -0
- package/resources/libpostal/dictionaries/zh/level_types_numbered.txt +5 -0
- package/resources/libpostal/dictionaries/zh/number.txt +3 -0
- package/resources/libpostal/dictionaries/zh/place_names.txt +2 -0
- package/resources/libpostal/dictionaries/zh/post_office.txt +3 -0
- package/resources/libpostal/dictionaries/zh/postcodes.txt +3 -0
- package/resources/libpostal/dictionaries/zh/qualifiers.txt +19 -0
- package/resources/libpostal/dictionaries/zh/stopwords.txt +2 -0
- package/resources/libpostal/dictionaries/zh/street_types.txt +30 -0
- package/resources/libpostal/dictionaries/zh/unit_types_numbered.txt +2 -0
- package/resources/libpostal/libpostal.test.ts +325 -0
- package/resources/libpostal/libpostal.ts +106 -0
- package/resources/libpostal/resources-download.sh +8 -0
- package/resources/pelias/dictionaries/libpostal/af/personal_titles.txt +2 -0
- package/resources/pelias/dictionaries/libpostal/all/surnames.txt +1 -0
- package/resources/pelias/dictionaries/libpostal/de/concatenated_suffixes_separable.txt +3 -0
- package/resources/pelias/dictionaries/libpostal/de/place_names.txt +1 -0
- package/resources/pelias/dictionaries/libpostal/de/street_types.txt +2 -0
- package/resources/pelias/dictionaries/libpostal/en/place_names.txt +7 -0
- package/resources/pelias/dictionaries/libpostal/en/road_types.txt +18 -0
- package/resources/pelias/dictionaries/libpostal/en/street_names.txt +2 -0
- package/resources/pelias/dictionaries/libpostal/en/street_types.txt +16 -0
- package/resources/pelias/dictionaries/libpostal/en/unit_types_numbered.txt +3 -0
- package/resources/pelias/dictionaries/libpostal/es/street_types.txt +2 -0
- package/resources/pelias/dictionaries/libpostal/fr/personal_titles.txt +4 -0
- package/resources/pelias/dictionaries/libpostal/fr/street_types.txt +5 -0
- package/resources/pelias/dictionaries/libpostal/it/street_types.txt +2 -0
- package/resources/pelias/dictionaries/libpostal/ko/street_types.txt +1 -0
- package/resources/pelias/dictionaries/libpostal/nb/concatenated_suffixes_inseparable.txt +40 -0
- package/resources/pelias/dictionaries/libpostal/nb/directionals.txt +8 -0
- package/resources/pelias/dictionaries/libpostal/nb/street_types.txt +36 -0
- package/resources/pelias/dictionaries/libpostal/nl/concatenated_suffixes_inseparable.txt +1 -0
- package/resources/pelias/dictionaries/libpostal/nl/concatenated_suffixes_separable.txt +8 -0
- package/resources/pelias/dictionaries/libpostal/nl/directionals.txt +4 -0
- package/resources/pelias/dictionaries/libpostal/nl/personal_suffixes.txt +4 -0
- package/resources/pelias/dictionaries/libpostal/nl/personal_titles.txt +43 -0
- package/resources/pelias/dictionaries/libpostal/pl/place_names.txt +1 -0
- package/resources/pelias/dictionaries/libpostal/pl/synonyms.txt +1 -0
- package/resources/pelias/dictionaries/libpostal/sv/concatenated_suffixes_separable.txt +1 -0
- package/resources/pelias/dictionaries/whosonfirst/locality/name:eng_x_preferred.txt +81 -0
- package/resources/pelias/dictionaries/whosonfirst/locality/name:fra_x_preferred.txt +2 -0
- package/resources/pelias/dictionaries/whosonfirst/region/name:eng_x_preferred.txt +2 -0
- package/resources/pelias/pelias.ts +12 -0
- package/resources/whosonfirst/dictionaries/country/name:eng_x_preferred.txt +220 -0
- package/resources/whosonfirst/dictionaries/country/wof:country.txt +215 -0
- package/resources/whosonfirst/dictionaries/country/wof:country_alpha3.txt +216 -0
- package/resources/whosonfirst/dictionaries/dependency/name:eng_x_preferred.txt +42 -0
- package/resources/whosonfirst/dictionaries/dependency/wof:shortcode.txt +34 -0
- package/resources/whosonfirst/dictionaries/locality/name:eng_x_preferred.txt +261365 -0
- package/resources/whosonfirst/dictionaries/locality/name:fra_x_preferred.txt +77631 -0
- package/resources/whosonfirst/dictionaries/region/abrv:eng_x_preferred.txt +441 -0
- package/resources/whosonfirst/dictionaries/region/name:eng_x_preferred.txt +4517 -0
- package/resources/whosonfirst/dictionaries/region/wof:shortcode.txt +839 -0
- package/resources/whosonfirst/generate.ts +135 -0
- package/resources/whosonfirst/placetypes.ts +47 -0
- package/resources/whosonfirst/whosonfirst.ts +79 -0
- package/sdk/repo.ts +66 -0
- package/sdk/test/utils/index.ts +42 -0
- package/server/index.ts +111 -0
- package/server/routes/parse.ts +62 -0
- package/server/static/index.html +279 -0
- package/server/types/locals.d.ts +19 -0
- package/solver/ExclusiveCartesianSolver.ts +74 -0
- package/solver/HouseNumberPositionPenalty.ts +80 -0
- package/solver/InvalidSolutionFilter.ts +34 -0
- package/solver/LeadingAreaDeclassifier.ts +41 -0
- package/solver/MultiStreetSolver.ts +142 -0
- package/solver/MustNotFollowFilter.test.ts +38 -0
- package/solver/MustNotFollowFilter.ts +39 -0
- package/solver/MustNotPreceedFilter.test.ts +38 -0
- package/solver/MustNotPreceedFilter.ts +39 -0
- package/solver/OrphanedLevelTypeDeclassifier.ts +30 -0
- package/solver/OrphanedUnitTypeDeclassifier.test.ts +70 -0
- package/solver/OrphanedUnitTypeDeclassifier.ts +32 -0
- package/solver/PostcodePositionPenalty.ts +49 -0
- package/solver/Solution.test.ts +46 -0
- package/solver/Solution.ts +151 -0
- package/solver/SolutionPair.ts +27 -0
- package/solver/SubsetFilter.test.ts +72 -0
- package/solver/SubsetFilter.ts +33 -0
- package/solver/TokenDistanceFilter.ts +38 -0
- package/solver/super/BaseSolver.ts +13 -0
- package/solver/super/HashMapSolver.ts +91 -0
- package/test/functional/address.aus.test.ts +57 -0
- package/test/functional/address.bra.test.ts +16 -0
- package/test/functional/address.cze.test.ts +88 -0
- package/test/functional/address.deu.test.ts +64 -0
- package/test/functional/address.esp.test.ts +14 -0
- package/test/functional/address.fra.test.ts +89 -0
- package/test/functional/address.gbr.test.ts +19 -0
- package/test/functional/address.hrv.test.ts +9 -0
- package/test/functional/address.ind.test.ts +15 -0
- package/test/functional/address.nld.test.ts +79 -0
- package/test/functional/address.nor.test.ts +25 -0
- package/test/functional/address.nzd.test.ts +63 -0
- package/test/functional/address.pol.test.ts +23 -0
- package/test/functional/address.prt.test.ts +47 -0
- package/test/functional/address.rom.test.ts +25 -0
- package/test/functional/address.svk.test.ts +14 -0
- package/test/functional/address.swe.test.ts +18 -0
- package/test/functional/address.usa.test.ts +284 -0
- package/test/functional/addressit.aus.test.ts +62 -0
- package/test/functional/addressit.usa.test.ts +117 -0
- package/test/functional/compound_street.test.ts +16 -0
- package/test/functional/functional.test.ts +80 -0
- package/test/functional/intersection.test.ts +410 -0
- package/test/functional/libpostal.test.ts +15 -0
- package/test/functional/place.fra.test.ts +107 -0
- package/test/functional/transit.test.ts +11 -0
- package/test/functional/venue.usa.test.ts +26 -0
- package/test/openaddresses.ts +136 -0
- package/tokenization/FST.test.ts +275 -0
- package/tokenization/FST.ts +163 -0
- package/tokenization/Graph.test.ts +182 -0
- package/tokenization/Graph.ts +96 -0
- package/tokenization/Span.test.ts +320 -0
- package/tokenization/Span.ts +172 -0
- package/tokenization/Tokenizer.test.ts +156 -0
- package/tokenization/Tokenizer.ts +83 -0
- package/tokenization/index.ts +11 -0
- package/tokenization/normalizer.test.ts +61 -0
- package/tokenization/normalizer.ts +38 -0
- package/tokenization/permutate.test.ts +368 -0
- package/tokenization/permutate.ts +97 -0
- package/tokenization/split.test.ts +84 -0
- package/tokenization/split.ts +54 -0
- package/tokenization/split_funcs.ts +45 -0
- package/tokenization/split_funcs_test.ts +38 -0
- package/tsconfig.json +11 -0
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @copyright OpenISP, Inc.
|
|
3
|
+
* @license AGPL-3.0
|
|
4
|
+
* @author Teffen Ellis, et al.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { DirectionalClassification } from "mailwoman/classification"
|
|
8
|
+
import test from "tape"
|
|
9
|
+
import { Span } from "../tokenization/Span.js"
|
|
10
|
+
import DirectionalClassifier from "./DirectionalClassifier.js"
|
|
11
|
+
|
|
12
|
+
const classifier = new DirectionalClassifier()
|
|
13
|
+
|
|
14
|
+
test("contains numerals: honours contains.numerals boolean", (t) => {
|
|
15
|
+
const span = new Span("example")
|
|
16
|
+
span.contains.numerals = true
|
|
17
|
+
classifier.each(span)
|
|
18
|
+
t.deepEqual(span.classifications, {})
|
|
19
|
+
t.end()
|
|
20
|
+
})
|
|
21
|
+
|
|
22
|
+
type DirectionalTestCaseRecord = {
|
|
23
|
+
valid: string[]
|
|
24
|
+
invalid: string[]
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const testCasesByLangauge = new Map<string, DirectionalTestCaseRecord>([
|
|
28
|
+
[
|
|
29
|
+
"English",
|
|
30
|
+
{
|
|
31
|
+
valid: [
|
|
32
|
+
"north",
|
|
33
|
+
"n",
|
|
34
|
+
"n.",
|
|
35
|
+
"south",
|
|
36
|
+
"s",
|
|
37
|
+
"s.",
|
|
38
|
+
"east",
|
|
39
|
+
"e",
|
|
40
|
+
"e.",
|
|
41
|
+
"west",
|
|
42
|
+
"w",
|
|
43
|
+
"w.",
|
|
44
|
+
"northeast",
|
|
45
|
+
"ne",
|
|
46
|
+
"ne.",
|
|
47
|
+
"southeast",
|
|
48
|
+
"se",
|
|
49
|
+
"se.",
|
|
50
|
+
"northwest",
|
|
51
|
+
"nw",
|
|
52
|
+
"nw.",
|
|
53
|
+
"southwest",
|
|
54
|
+
"sw",
|
|
55
|
+
"sw.",
|
|
56
|
+
"lower",
|
|
57
|
+
"lwr",
|
|
58
|
+
"upper",
|
|
59
|
+
"upr",
|
|
60
|
+
"middle",
|
|
61
|
+
"mdl",
|
|
62
|
+
"centre",
|
|
63
|
+
"center",
|
|
64
|
+
"ctr",
|
|
65
|
+
"central",
|
|
66
|
+
"ctrl",
|
|
67
|
+
],
|
|
68
|
+
|
|
69
|
+
invalid: ["northsouth", "ns", "ns.", "westeast", "we", "we."],
|
|
70
|
+
},
|
|
71
|
+
],
|
|
72
|
+
[
|
|
73
|
+
"Spanish",
|
|
74
|
+
{
|
|
75
|
+
valid: [
|
|
76
|
+
"norte",
|
|
77
|
+
"n",
|
|
78
|
+
"n.",
|
|
79
|
+
"sur",
|
|
80
|
+
"s",
|
|
81
|
+
"s.",
|
|
82
|
+
"este",
|
|
83
|
+
"e",
|
|
84
|
+
"e.",
|
|
85
|
+
"oeste",
|
|
86
|
+
"w",
|
|
87
|
+
"w.",
|
|
88
|
+
"noreste",
|
|
89
|
+
"ne",
|
|
90
|
+
"ne.",
|
|
91
|
+
"sureste",
|
|
92
|
+
"se",
|
|
93
|
+
"se.",
|
|
94
|
+
"noroeste",
|
|
95
|
+
"nw",
|
|
96
|
+
"nw.",
|
|
97
|
+
"suroeste",
|
|
98
|
+
"sw",
|
|
99
|
+
"sw.",
|
|
100
|
+
],
|
|
101
|
+
|
|
102
|
+
invalid: ["norsur", "ns", "ns.", "oesteeste", "we", "we."],
|
|
103
|
+
},
|
|
104
|
+
],
|
|
105
|
+
|
|
106
|
+
[
|
|
107
|
+
"German",
|
|
108
|
+
{
|
|
109
|
+
valid: [
|
|
110
|
+
"nord",
|
|
111
|
+
"n",
|
|
112
|
+
"n.",
|
|
113
|
+
"süd",
|
|
114
|
+
"s",
|
|
115
|
+
"s.",
|
|
116
|
+
"ost",
|
|
117
|
+
"o",
|
|
118
|
+
"o.",
|
|
119
|
+
"west",
|
|
120
|
+
"w",
|
|
121
|
+
"w.",
|
|
122
|
+
"nordost",
|
|
123
|
+
"no",
|
|
124
|
+
"no.",
|
|
125
|
+
"südost",
|
|
126
|
+
"so",
|
|
127
|
+
"so.",
|
|
128
|
+
"nordwest",
|
|
129
|
+
"nw",
|
|
130
|
+
"nw.",
|
|
131
|
+
"südwest",
|
|
132
|
+
"sw",
|
|
133
|
+
"sw.",
|
|
134
|
+
],
|
|
135
|
+
|
|
136
|
+
invalid: ["nordsüd", "ns", "ns.", "westost", "wo", "wo."],
|
|
137
|
+
},
|
|
138
|
+
],
|
|
139
|
+
[
|
|
140
|
+
"French",
|
|
141
|
+
{
|
|
142
|
+
valid: [
|
|
143
|
+
"nord",
|
|
144
|
+
"n",
|
|
145
|
+
"n.",
|
|
146
|
+
"sud",
|
|
147
|
+
"s",
|
|
148
|
+
"s.",
|
|
149
|
+
"est",
|
|
150
|
+
"e",
|
|
151
|
+
"e.",
|
|
152
|
+
"ouest",
|
|
153
|
+
"o",
|
|
154
|
+
"o.",
|
|
155
|
+
"nord est",
|
|
156
|
+
"ne",
|
|
157
|
+
"ne.",
|
|
158
|
+
"sud est",
|
|
159
|
+
"se",
|
|
160
|
+
"se.",
|
|
161
|
+
"nord ouest",
|
|
162
|
+
"no",
|
|
163
|
+
"no.",
|
|
164
|
+
"sud ouest",
|
|
165
|
+
"so",
|
|
166
|
+
"so.",
|
|
167
|
+
],
|
|
168
|
+
|
|
169
|
+
invalid: ["nordsud", "ns", "ns.", "ouestest", "oe", "oe."],
|
|
170
|
+
},
|
|
171
|
+
],
|
|
172
|
+
])
|
|
173
|
+
|
|
174
|
+
for (const [language, cases] of testCasesByLangauge) {
|
|
175
|
+
for (const token of cases.valid) {
|
|
176
|
+
test(`${language}: ${token}`, (t) => {
|
|
177
|
+
const span = classifier.classify(token)
|
|
178
|
+
t.deepEqual(span.classifications, { DirectionalClassification: new DirectionalClassification(1.0) })
|
|
179
|
+
t.end()
|
|
180
|
+
})
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
for (const token of cases.invalid) {
|
|
184
|
+
test(`${language}: ${token}`, (t) => {
|
|
185
|
+
const span = classifier.classify(token)
|
|
186
|
+
t.deepEqual(span.classifications, {})
|
|
187
|
+
t.end()
|
|
188
|
+
})
|
|
189
|
+
}
|
|
190
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @copyright OpenISP, Inc.
|
|
3
|
+
* @license AGPL-3.0
|
|
4
|
+
* @author Teffen Ellis, et al.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import DirectionalClassification from "../classification/DirectionalClassification.js"
|
|
8
|
+
import * as libpostal from "../resources/libpostal/libpostal.js"
|
|
9
|
+
import { Span } from "../tokenization/Span.js"
|
|
10
|
+
import { WordClassifier } from "./super/WordClassifier.js"
|
|
11
|
+
|
|
12
|
+
// dictionaries sourced from the libpostal project
|
|
13
|
+
// see: https://github.com/openvenues/libpostal
|
|
14
|
+
|
|
15
|
+
// const languages = libpostal.languages
|
|
16
|
+
|
|
17
|
+
// optionally control which languages are included
|
|
18
|
+
// note: reducing the languages will have a considerable performance benefit
|
|
19
|
+
const languages = ["en", "es", "de", "fr", "nl", "nb"] as const
|
|
20
|
+
|
|
21
|
+
class DirectionalClassifier extends WordClassifier {
|
|
22
|
+
public index: libpostal.PostalIndex = {}
|
|
23
|
+
|
|
24
|
+
constructor() {
|
|
25
|
+
super()
|
|
26
|
+
|
|
27
|
+
libpostal.load(this.index, languages, "directionals.txt")
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
each(span: Span) {
|
|
31
|
+
// skip spans which contain numbers
|
|
32
|
+
if (span.contains.numerals) {
|
|
33
|
+
return
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// use an inverted index for full token matching as it's O(1)
|
|
37
|
+
if (Object.hasOwn(this.index, span.norm)) {
|
|
38
|
+
span.classify(new DirectionalClassification(1))
|
|
39
|
+
|
|
40
|
+
// try again for abbreviations denoted by a period such as 'n.'
|
|
41
|
+
} else if (span.norm.slice(-1) === "." && Object.hasOwn(this.index, span.norm.slice(0, -1))) {
|
|
42
|
+
span.classify(new DirectionalClassification(1))
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export default DirectionalClassifier
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @copyright OpenISP, Inc.
|
|
3
|
+
* @license AGPL-3.0
|
|
4
|
+
* @author Teffen Ellis, et al.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { GivenNameClassification } from "mailwoman/classification"
|
|
8
|
+
import test from "tape"
|
|
9
|
+
import { Span } from "../tokenization/Span.js"
|
|
10
|
+
import GivenNameClassifier from "./GivenNameClassifier.js"
|
|
11
|
+
|
|
12
|
+
const classifier = new GivenNameClassifier()
|
|
13
|
+
|
|
14
|
+
test("contains numerals: honours contains.numerals boolean", (t) => {
|
|
15
|
+
const span = new Span("example")
|
|
16
|
+
span.contains.numerals = true
|
|
17
|
+
classifier.each(span)
|
|
18
|
+
t.deepEqual(span.classifications, {})
|
|
19
|
+
t.end()
|
|
20
|
+
})
|
|
21
|
+
|
|
22
|
+
const valid = ["Anderson Luís", "Peter"]
|
|
23
|
+
|
|
24
|
+
valid.forEach((token) => {
|
|
25
|
+
test(`classify: ${token}`, (t) => {
|
|
26
|
+
const span = classifier.classify(token)
|
|
27
|
+
t.deepEqual(span.classifications, {
|
|
28
|
+
GivenNameClassification: new GivenNameClassification(1.0),
|
|
29
|
+
})
|
|
30
|
+
t.end()
|
|
31
|
+
})
|
|
32
|
+
})
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @copyright OpenISP, Inc.
|
|
3
|
+
* @license AGPL-3.0
|
|
4
|
+
* @author Teffen Ellis, et al.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import GivenNameClassification from "../classification/GivenNameClassification.js"
|
|
8
|
+
import * as libpostal from "../resources/libpostal/libpostal.js"
|
|
9
|
+
import { Span } from "../tokenization/Span.js"
|
|
10
|
+
import PhraseClassifier from "./super/PhraseClassifier.js"
|
|
11
|
+
|
|
12
|
+
// dictionaries sourced from the libpostal project
|
|
13
|
+
// see: https://github.com/openvenues/libpostal
|
|
14
|
+
|
|
15
|
+
class GivenNameClassifier extends PhraseClassifier {
|
|
16
|
+
public index: libpostal.PostalIndex = {}
|
|
17
|
+
|
|
18
|
+
constructor() {
|
|
19
|
+
super()
|
|
20
|
+
|
|
21
|
+
libpostal.load(this.index, ["all"], "given_names.txt", {
|
|
22
|
+
lowercase: true,
|
|
23
|
+
minlength: 3, // prevent very short names being indexed
|
|
24
|
+
})
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
each(span: Span) {
|
|
28
|
+
// skip spans which contain numbers
|
|
29
|
+
if (span.contains.numerals) {
|
|
30
|
+
return
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// use an inverted index for full token matching as it's O(1)
|
|
34
|
+
if (Object.hasOwn(this.index, span.norm)) {
|
|
35
|
+
span.classify(new GivenNameClassification(1))
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export default GivenNameClassifier
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @copyright OpenISP, Inc.
|
|
3
|
+
* @license AGPL-3.0
|
|
4
|
+
* @author Teffen Ellis, et al.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { HouseNumberClassification } from "mailwoman/classification"
|
|
8
|
+
import test from "tape"
|
|
9
|
+
import { Span } from "../tokenization/Span.js"
|
|
10
|
+
import HouseNumberClassifier from "./HouseNumberClassifier.js"
|
|
11
|
+
|
|
12
|
+
const classifier = new HouseNumberClassifier()
|
|
13
|
+
|
|
14
|
+
test("contains numerals: honours contains.numerals boolean", (t) => {
|
|
15
|
+
const span = new Span("100")
|
|
16
|
+
span.contains.numerals = false
|
|
17
|
+
classifier.each(span)
|
|
18
|
+
t.deepEqual(span.classifications, {})
|
|
19
|
+
t.end()
|
|
20
|
+
})
|
|
21
|
+
|
|
22
|
+
test("numeric: single digit", (t) => {
|
|
23
|
+
const span = classifier.classify("1")
|
|
24
|
+
t.deepEqual(span.classifications, { HouseNumberClassification: new HouseNumberClassification(1.0) })
|
|
25
|
+
t.end()
|
|
26
|
+
})
|
|
27
|
+
|
|
28
|
+
test("numeric: two digits", (t) => {
|
|
29
|
+
const span = classifier.classify("12")
|
|
30
|
+
t.deepEqual(span.classifications, { HouseNumberClassification: new HouseNumberClassification(1.0) })
|
|
31
|
+
t.end()
|
|
32
|
+
})
|
|
33
|
+
|
|
34
|
+
test("numeric: three digits", (t) => {
|
|
35
|
+
const span = classifier.classify("123")
|
|
36
|
+
t.deepEqual(span.classifications, { HouseNumberClassification: new HouseNumberClassification(1.0) })
|
|
37
|
+
t.end()
|
|
38
|
+
})
|
|
39
|
+
|
|
40
|
+
test("numeric: four digits", (t) => {
|
|
41
|
+
const span = classifier.classify("1234")
|
|
42
|
+
t.deepEqual(span.classifications, { HouseNumberClassification: new HouseNumberClassification(0.9) })
|
|
43
|
+
t.end()
|
|
44
|
+
})
|
|
45
|
+
|
|
46
|
+
test("numeric: five digits", (t) => {
|
|
47
|
+
const span = classifier.classify("12345")
|
|
48
|
+
t.deepEqual(span.classifications, { HouseNumberClassification: new HouseNumberClassification(0.2) })
|
|
49
|
+
t.end()
|
|
50
|
+
})
|
|
51
|
+
|
|
52
|
+
test("numeric: six digits", (t) => {
|
|
53
|
+
const span = classifier.classify("123456")
|
|
54
|
+
t.deepEqual(span.classifications, {})
|
|
55
|
+
t.end()
|
|
56
|
+
})
|
|
57
|
+
|
|
58
|
+
test("letter suffix: single digit", (t) => {
|
|
59
|
+
const span = classifier.classify("1A")
|
|
60
|
+
t.deepEqual(span.classifications, { HouseNumberClassification: new HouseNumberClassification(1.0) })
|
|
61
|
+
t.end()
|
|
62
|
+
})
|
|
63
|
+
|
|
64
|
+
test("letter suffix: two digits", (t) => {
|
|
65
|
+
const span = classifier.classify("12b")
|
|
66
|
+
t.deepEqual(span.classifications, { HouseNumberClassification: new HouseNumberClassification(1.0) })
|
|
67
|
+
t.end()
|
|
68
|
+
})
|
|
69
|
+
|
|
70
|
+
test("letter suffix: three digits", (t) => {
|
|
71
|
+
const span = classifier.classify("123C")
|
|
72
|
+
t.deepEqual(span.classifications, { HouseNumberClassification: new HouseNumberClassification(1.0) })
|
|
73
|
+
t.end()
|
|
74
|
+
})
|
|
75
|
+
|
|
76
|
+
test("letter suffix: four digits", (t) => {
|
|
77
|
+
const span = classifier.classify("1234d")
|
|
78
|
+
t.deepEqual(span.classifications, { HouseNumberClassification: new HouseNumberClassification(0.9) })
|
|
79
|
+
t.end()
|
|
80
|
+
})
|
|
81
|
+
|
|
82
|
+
test("letter suffix: five digits", (t) => {
|
|
83
|
+
const span = classifier.classify("12345E")
|
|
84
|
+
t.deepEqual(span.classifications, { HouseNumberClassification: new HouseNumberClassification(0.2) })
|
|
85
|
+
t.end()
|
|
86
|
+
})
|
|
87
|
+
|
|
88
|
+
test("letter suffix: six digits", (t) => {
|
|
89
|
+
const span = classifier.classify("123456f")
|
|
90
|
+
t.deepEqual(span.classifications, {})
|
|
91
|
+
t.end()
|
|
92
|
+
})
|
|
93
|
+
|
|
94
|
+
test("letter suffix: Cyrillic", (t) => {
|
|
95
|
+
const span = classifier.classify("15в")
|
|
96
|
+
t.deepEqual(span.classifications, { HouseNumberClassification: new HouseNumberClassification(1.0) })
|
|
97
|
+
t.end()
|
|
98
|
+
})
|
|
99
|
+
|
|
100
|
+
test("letter suffix: Cyrillic", (t) => {
|
|
101
|
+
const span = classifier.classify("15б")
|
|
102
|
+
t.deepEqual(span.classifications, { HouseNumberClassification: new HouseNumberClassification(1.0) })
|
|
103
|
+
t.end()
|
|
104
|
+
})
|
|
105
|
+
|
|
106
|
+
test("hyphenated: 10-19", (t) => {
|
|
107
|
+
const span = classifier.classify("10-19")
|
|
108
|
+
t.deepEqual(span.classifications, { HouseNumberClassification: new HouseNumberClassification(1.0) })
|
|
109
|
+
t.end()
|
|
110
|
+
})
|
|
111
|
+
|
|
112
|
+
test("hyphenated: 10-19a", (t) => {
|
|
113
|
+
const span = classifier.classify("10-19a")
|
|
114
|
+
t.deepEqual(span.classifications, { HouseNumberClassification: new HouseNumberClassification(1.0) })
|
|
115
|
+
t.end()
|
|
116
|
+
})
|
|
117
|
+
|
|
118
|
+
test("hyphenated: 10-19B", (t) => {
|
|
119
|
+
const span = classifier.classify("10-19B")
|
|
120
|
+
t.deepEqual(span.classifications, { HouseNumberClassification: new HouseNumberClassification(1.0) })
|
|
121
|
+
t.end()
|
|
122
|
+
})
|
|
123
|
+
|
|
124
|
+
test("forward slash: 1/135", (t) => {
|
|
125
|
+
const span = classifier.classify("1/135")
|
|
126
|
+
t.deepEqual(span.classifications, { HouseNumberClassification: new HouseNumberClassification(1.0) })
|
|
127
|
+
t.end()
|
|
128
|
+
})
|
|
129
|
+
|
|
130
|
+
test("forward slash: 1a/135", (t) => {
|
|
131
|
+
const span = classifier.classify("1a/135")
|
|
132
|
+
t.deepEqual(span.classifications, { HouseNumberClassification: new HouseNumberClassification(1.0) })
|
|
133
|
+
t.end()
|
|
134
|
+
})
|
|
135
|
+
|
|
136
|
+
test("forward slash: 1B/125", (t) => {
|
|
137
|
+
const span = classifier.classify("1B/125")
|
|
138
|
+
t.deepEqual(span.classifications, { HouseNumberClassification: new HouseNumberClassification(1.0) })
|
|
139
|
+
t.end()
|
|
140
|
+
})
|
|
141
|
+
|
|
142
|
+
test("misc: 6N23", (t) => {
|
|
143
|
+
const span = classifier.classify("6N23")
|
|
144
|
+
t.deepEqual(span.classifications, { HouseNumberClassification: new HouseNumberClassification(1.0) })
|
|
145
|
+
t.end()
|
|
146
|
+
})
|
|
147
|
+
|
|
148
|
+
test("misc: W350N5337", (t) => {
|
|
149
|
+
const span = classifier.classify("W350N5337")
|
|
150
|
+
t.deepEqual(span.classifications, { HouseNumberClassification: new HouseNumberClassification(1.0) })
|
|
151
|
+
t.end()
|
|
152
|
+
})
|
|
153
|
+
|
|
154
|
+
test("misc: N453", (t) => {
|
|
155
|
+
const span = classifier.classify("N453")
|
|
156
|
+
t.deepEqual(span.classifications, { HouseNumberClassification: new HouseNumberClassification(1.0) })
|
|
157
|
+
t.end()
|
|
158
|
+
})
|
|
159
|
+
|
|
160
|
+
// test('misc: д. 1, кв. 1', (t) => {
|
|
161
|
+
// let s = classify('д. 1, кв. 1')
|
|
162
|
+
// t.deepEqual(span.classifications, { HouseNumberClassification: new HouseNumberClassification(1.0) })
|
|
163
|
+
// t.end()
|
|
164
|
+
// })
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @copyright OpenISP, Inc.
|
|
3
|
+
* @license AGPL-3.0
|
|
4
|
+
* @author Teffen Ellis, et al.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import HouseNumberClassification from "../classification/HouseNumberClassification.js"
|
|
8
|
+
import { Span } from "../tokenization/Span.js"
|
|
9
|
+
import { WordClassifier } from "./super/WordClassifier.js"
|
|
10
|
+
|
|
11
|
+
// copied from: https://github.com/mapbox/carmen/blob/5489f0e67a4f31280ae1b9d091952c97280b83e7/lib/text-processing/termops.js#L269-L290
|
|
12
|
+
// note: \u0400-\u04FF represents a-z in the Cyrillic alphabet
|
|
13
|
+
|
|
14
|
+
class HouseNumberClassifier extends WordClassifier {
|
|
15
|
+
each(span: Span) {
|
|
16
|
+
// skip spans which do not contain numbers
|
|
17
|
+
if (!span.contains.numerals) {
|
|
18
|
+
return
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
if (
|
|
22
|
+
/^\d{1,5}[a-zA-Z\u0400-\u04FF]?$/.test(span.body) || // 10 or 10a Style
|
|
23
|
+
/^(\d{1,5})-(\d{1,5})[a-zA-Z\u0400-\u04FF]?$/.test(span.body) || // 10-19 or 10-19a Style
|
|
24
|
+
/^(\d{1,5})[a-zA-Z\u0400-\u04FF]?\/(\d{1,5})$/.test(span.body) || // 1/135 or 1b/135 Style
|
|
25
|
+
/^(\d{1,5})([nsewNSEW])(\d{1,5})[a-zA-Z]?$/.test(span.body) || // 6N23 Style (ie Kane County, IL)
|
|
26
|
+
/^([nsewNSEW])(\d{1,5})([nsewNSEW]\d{1,5})?$/.test(span.body) // W350N5337 or N453 Style (ie Waukesha County, WI)
|
|
27
|
+
// /^\d{1,5}(к\d{1,5})?(с\d{1,5})?$/.test(span.body) // Russian style including korpus (cyrillic к) and stroenie (cyrillic с)
|
|
28
|
+
) {
|
|
29
|
+
let confidence = 1
|
|
30
|
+
const prev = span.graph.findOne("prev")
|
|
31
|
+
|
|
32
|
+
if (prev) {
|
|
33
|
+
// Housenumber must not be preceded by unit type
|
|
34
|
+
if (Object.hasOwn(prev.classifications, "LevelTypeClassification")) {
|
|
35
|
+
return
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
if (Object.hasOwn(prev.classifications, "UnitTypeClassification")) {
|
|
39
|
+
return
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// it's possible to have 5 digit housenumbers
|
|
44
|
+
// but they are fairly uncommon
|
|
45
|
+
if (/^\d{5}/.test(span.norm)) {
|
|
46
|
+
confidence = 0.2
|
|
47
|
+
} else if (/^\d{4}/.test(span.norm)) {
|
|
48
|
+
confidence = 0.9
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
span.classify(new HouseNumberClassification(confidence))
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export default HouseNumberClassifier
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @copyright OpenISP, Inc.
|
|
3
|
+
* @license AGPL-3.0
|
|
4
|
+
* @author Teffen Ellis, et al.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import IntersectionClassification from "../classification/IntersectionClassification.js"
|
|
8
|
+
import { Span } from "../tokenization/Span.js"
|
|
9
|
+
import PhraseClassifier from "./super/PhraseClassifier.js"
|
|
10
|
+
|
|
11
|
+
class IntersectionClassifier extends PhraseClassifier {
|
|
12
|
+
public index = new Map<string, boolean>([
|
|
13
|
+
["&", true],
|
|
14
|
+
["and", true],
|
|
15
|
+
["und", true],
|
|
16
|
+
["@", true],
|
|
17
|
+
["at", true],
|
|
18
|
+
["con", true],
|
|
19
|
+
["an der ecke von", true],
|
|
20
|
+
])
|
|
21
|
+
|
|
22
|
+
each(span: Span) {
|
|
23
|
+
// skip spans which contain numbers
|
|
24
|
+
if (span.contains.numerals) {
|
|
25
|
+
return
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// do not classify tokens with tokens missing before or afterwards
|
|
29
|
+
const firstChild = span.graph.findOne("child:first") || span
|
|
30
|
+
const prev = firstChild.graph.findOne("prev")
|
|
31
|
+
const next = firstChild.graph.findOne("next")
|
|
32
|
+
if (!prev || !next) {
|
|
33
|
+
return
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// use an inverted index for full token matching as it's O(1)
|
|
37
|
+
if (this.index.has(span.norm)) {
|
|
38
|
+
// classify phrase
|
|
39
|
+
span.classify(new IntersectionClassification(1))
|
|
40
|
+
|
|
41
|
+
// classify child spans
|
|
42
|
+
span.graph.findAll("child").forEach((c) => c.classify(new IntersectionClassification(1)))
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export default IntersectionClassifier
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @copyright OpenISP, Inc.
|
|
3
|
+
* @license AGPL-3.0
|
|
4
|
+
* @author Teffen Ellis, et al.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import LevelClassification from "../classification/LevelClassification.js"
|
|
8
|
+
import { LevelTypeClassification } from "../classification/LevelTypeClassification.js"
|
|
9
|
+
import { Span } from "../tokenization/Span.js"
|
|
10
|
+
import { ClassifyInput } from "./super/BaseClassifier.js"
|
|
11
|
+
import { WordClassifier } from "./super/WordClassifier.js"
|
|
12
|
+
|
|
13
|
+
const combinedFloorRegexp = /^\d{1,2}$/
|
|
14
|
+
|
|
15
|
+
export class LevelClassifier extends WordClassifier {
|
|
16
|
+
each(span: Span) {
|
|
17
|
+
const prev = span.graph.findOne("prev")
|
|
18
|
+
const hasPrevLevelToken = prev?.classifications
|
|
19
|
+
? Object.hasOwn(prev.classifications, "LevelTypeClassification")
|
|
20
|
+
: false
|
|
21
|
+
|
|
22
|
+
// If the previous token in a level word, like floor, fl, or floor.
|
|
23
|
+
if (hasPrevLevelToken && combinedFloorRegexp.test(span.body)) {
|
|
24
|
+
span.classify(new LevelClassification(1))
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// // A token that starts with a '#' and is not the first token in the query
|
|
28
|
+
// // and matches our regexp is always labeled as a level
|
|
29
|
+
// if (span.body[0] === "FLOOR" && prev && combinedFloorRegexp.test(span.body)) {
|
|
30
|
+
// span.classify(new LevelClassification(1))
|
|
31
|
+
// }
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
override classify(input: ClassifyInput, prev?: ClassifyInput): Span {
|
|
35
|
+
const span = Span.from(input)
|
|
36
|
+
|
|
37
|
+
if (prev) {
|
|
38
|
+
const p = Span.from(prev)
|
|
39
|
+
|
|
40
|
+
p.classify(new LevelTypeClassification(1.0))
|
|
41
|
+
span.graph.add("prev", p)
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
this.each(span)
|
|
45
|
+
|
|
46
|
+
return span
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @copyright OpenISP, Inc.
|
|
3
|
+
* @license AGPL-3.0
|
|
4
|
+
* @author Teffen Ellis, et al.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { LevelTypeClassification } from "mailwoman/classification"
|
|
8
|
+
import test from "tape"
|
|
9
|
+
import { LevelTypeClassifier } from "./LevelTypeClassifier.js"
|
|
10
|
+
|
|
11
|
+
const classifier = new LevelTypeClassifier()
|
|
12
|
+
|
|
13
|
+
for (const token of ["fl", "floor"]) {
|
|
14
|
+
test(`english level types: ${token}`, (t) => {
|
|
15
|
+
const span = classifier.classify(token)
|
|
16
|
+
|
|
17
|
+
t.deepEqual(span.classifications, {
|
|
18
|
+
LevelTypeClassification: new LevelTypeClassification(1, {}),
|
|
19
|
+
})
|
|
20
|
+
t.end()
|
|
21
|
+
})
|
|
22
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @copyright OpenISP, Inc.
|
|
3
|
+
* @license AGPL-3.0
|
|
4
|
+
* @author Teffen Ellis, et al.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { LevelTypeClassification } from "../classification/LevelTypeClassification.js"
|
|
8
|
+
import * as libpostal from "../resources/libpostal/libpostal.js"
|
|
9
|
+
import { Span } from "../tokenization/Span.js"
|
|
10
|
+
import { WordClassifier } from "./super/WordClassifier.js"
|
|
11
|
+
|
|
12
|
+
export class LevelTypeClassifier extends WordClassifier {
|
|
13
|
+
public index: libpostal.PostalIndex = {}
|
|
14
|
+
|
|
15
|
+
constructor() {
|
|
16
|
+
super()
|
|
17
|
+
|
|
18
|
+
libpostal.load(this.index, ["en"], "level_types_numbered.txt")
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
each(span: Span) {
|
|
22
|
+
// skip spans which contain numbers
|
|
23
|
+
if (span.contains.numerals) {
|
|
24
|
+
return
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// use an inverted index for full token matching as it's O(1)
|
|
28
|
+
if (Object.hasOwn(this.index, span.norm)) {
|
|
29
|
+
span.classify(new LevelTypeClassification(1.0))
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|