mailwoman 1.0.0 → 2.0.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/out/cli.js +0 -0
- package/out/commands/corpus/build.d.ts +28 -0
- package/out/commands/corpus/build.d.ts.map +1 -0
- package/out/commands/corpus/build.js +107 -0
- package/out/commands/corpus/build.js.map +1 -0
- package/out/commands/corpus/list.d.ts +19 -0
- package/out/commands/corpus/list.d.ts.map +1 -0
- package/out/commands/corpus/list.js +28 -0
- package/out/commands/corpus/list.js.map +1 -0
- package/out/commands/corpus/run.d.ts +26 -0
- package/out/commands/corpus/run.d.ts.map +1 -0
- package/out/commands/corpus/run.js +109 -0
- package/out/commands/corpus/run.js.map +1 -0
- package/out/commands/debug.d.ts +7 -4
- package/out/commands/debug.d.ts.map +1 -1
- package/out/commands/debug.js +12 -4
- package/out/commands/debug.js.map +1 -1
- package/out/commands/parse.d.ts +13 -7
- package/out/commands/parse.d.ts.map +1 -1
- package/out/commands/parse.js +116 -4
- package/out/commands/parse.js.map +1 -1
- package/out/commands/serve.d.ts +3 -19
- package/out/commands/serve.d.ts.map +1 -1
- package/out/commands/serve.js +4 -3
- package/out/commands/serve.js.map +1 -1
- package/out/commands/wof/prepare/index.d.ts +2 -2
- package/out/commands/wof/prepare/index.d.ts.map +1 -1
- package/out/commands/wof/prepare/index.js +3 -2
- package/out/commands/wof/prepare/index.js.map +1 -1
- package/out/commands/wof/sync.d.ts +16 -4
- package/out/commands/wof/sync.d.ts.map +1 -1
- package/out/commands/wof/sync.js +33 -6
- package/out/commands/wof/sync.js.map +1 -1
- package/out/index.d.ts +2 -2
- package/out/index.d.ts.map +1 -1
- package/out/index.js +7 -2
- package/out/index.js.map +1 -1
- package/out/sdk/cli.d.ts +2 -2
- package/out/sdk/cli.d.ts.map +1 -1
- package/out/sdk/test/index.d.ts +5 -7
- package/out/sdk/test/index.d.ts.map +1 -1
- package/out/sdk/test/index.js +22 -36
- package/out/sdk/test/index.js.map +1 -1
- package/out/server/AddressRouter.d.ts +1 -1
- package/out/server/AddressRouter.d.ts.map +1 -1
- package/out/server/AddressRouter.js.map +1 -1
- package/out/server/static/main.d.ts +2 -0
- package/out/server/static/main.d.ts.map +1 -0
- package/out/utils/DebugOutputBuilder.d.ts +1 -1
- package/out/utils/DebugOutputBuilder.d.ts.map +1 -1
- package/out/utils/DebugOutputBuilder.js +1 -1
- package/out/utils/DebugOutputBuilder.js.map +1 -1
- package/out/utils/parser.d.ts +1 -1
- package/out/utils/parser.d.ts.map +1 -1
- package/out/utils/parser.js +4 -4
- package/out/utils/parser.js.map +1 -1
- package/package.json +88 -164
- package/LICENSE.md +0 -675
- package/README.md +0 -191
- package/out/classifiers/AdjacencyClassifier.d.ts +0 -16
- package/out/classifiers/AdjacencyClassifier.d.ts.map +0 -1
- package/out/classifiers/AdjacencyClassifier.js +0 -50
- package/out/classifiers/AdjacencyClassifier.js.map +0 -1
- package/out/classifiers/AlphaNumericClassifier.d.ts +0 -10
- package/out/classifiers/AlphaNumericClassifier.d.ts.map +0 -1
- package/out/classifiers/AlphaNumericClassifier.js +0 -23
- package/out/classifiers/AlphaNumericClassifier.js.map +0 -1
- package/out/classifiers/AlphaNumericClassifier.test.d.ts +0 -7
- package/out/classifiers/AlphaNumericClassifier.test.d.ts.map +0 -1
- package/out/classifiers/AlphaNumericClassifier.test.js +0 -80
- package/out/classifiers/AlphaNumericClassifier.test.js.map +0 -1
- package/out/classifiers/CentralEuropeanStreetNameClassifier.d.ts +0 -16
- package/out/classifiers/CentralEuropeanStreetNameClassifier.d.ts.map +0 -1
- package/out/classifiers/CentralEuropeanStreetNameClassifier.js +0 -36
- package/out/classifiers/CentralEuropeanStreetNameClassifier.js.map +0 -1
- package/out/classifiers/CentralEuropeanStreetNameClassifier.test.d.ts +0 -7
- package/out/classifiers/CentralEuropeanStreetNameClassifier.test.d.ts.map +0 -1
- package/out/classifiers/CentralEuropeanStreetNameClassifier.test.js +0 -70
- package/out/classifiers/CentralEuropeanStreetNameClassifier.test.js.map +0 -1
- package/out/classifiers/ChainClassifier.d.ts +0 -14
- package/out/classifiers/ChainClassifier.d.ts.map +0 -1
- package/out/classifiers/ChainClassifier.js +0 -25
- package/out/classifiers/ChainClassifier.js.map +0 -1
- package/out/classifiers/ChainClassifier.test.d.ts +0 -7
- package/out/classifiers/ChainClassifier.test.d.ts.map +0 -1
- package/out/classifiers/ChainClassifier.test.js +0 -15
- package/out/classifiers/ChainClassifier.test.js.map +0 -1
- package/out/classifiers/CompositeClassifier.test.d.ts +0 -7
- package/out/classifiers/CompositeClassifier.test.d.ts.map +0 -1
- package/out/classifiers/CompositeClassifier.test.js +0 -63
- package/out/classifiers/CompositeClassifier.test.js.map +0 -1
- package/out/classifiers/CompoundLevelClassifier.d.ts +0 -16
- package/out/classifiers/CompoundLevelClassifier.d.ts.map +0 -1
- package/out/classifiers/CompoundLevelClassifier.js +0 -58
- package/out/classifiers/CompoundLevelClassifier.js.map +0 -1
- package/out/classifiers/CompoundStreetClassifier.d.ts +0 -12
- package/out/classifiers/CompoundStreetClassifier.d.ts.map +0 -1
- package/out/classifiers/CompoundStreetClassifier.js +0 -50
- package/out/classifiers/CompoundStreetClassifier.js.map +0 -1
- package/out/classifiers/CompoundStreetClassifier.test.d.ts +0 -7
- package/out/classifiers/CompoundStreetClassifier.test.d.ts.map +0 -1
- package/out/classifiers/CompoundStreetClassifier.test.js +0 -24
- package/out/classifiers/CompoundStreetClassifier.test.js.map +0 -1
- package/out/classifiers/CompoundUnitDesignatorClassifier.d.ts +0 -16
- package/out/classifiers/CompoundUnitDesignatorClassifier.d.ts.map +0 -1
- package/out/classifiers/CompoundUnitDesignatorClassifier.js +0 -57
- package/out/classifiers/CompoundUnitDesignatorClassifier.js.map +0 -1
- package/out/classifiers/DirectionalClassifier.d.ts +0 -11
- package/out/classifiers/DirectionalClassifier.d.ts.map +0 -1
- package/out/classifiers/DirectionalClassifier.js +0 -31
- package/out/classifiers/DirectionalClassifier.js.map +0 -1
- package/out/classifiers/DirectionalClassifier.test.d.ts +0 -7
- package/out/classifiers/DirectionalClassifier.test.d.ts.map +0 -1
- package/out/classifiers/DirectionalClassifier.test.js +0 -167
- package/out/classifiers/DirectionalClassifier.test.js.map +0 -1
- package/out/classifiers/GivenNameClassifier.d.ts +0 -11
- package/out/classifiers/GivenNameClassifier.d.ts.map +0 -1
- package/out/classifiers/GivenNameClassifier.js +0 -32
- package/out/classifiers/GivenNameClassifier.js.map +0 -1
- package/out/classifiers/GivenNameClassifier.test.d.ts +0 -7
- package/out/classifiers/GivenNameClassifier.test.d.ts.map +0 -1
- package/out/classifiers/GivenNameClassifier.test.js +0 -13
- package/out/classifiers/GivenNameClassifier.test.js.map +0 -1
- package/out/classifiers/HouseNumberClassifier.d.ts +0 -15
- package/out/classifiers/HouseNumberClassifier.d.ts.map +0 -1
- package/out/classifiers/HouseNumberClassifier.js +0 -79
- package/out/classifiers/HouseNumberClassifier.js.map +0 -1
- package/out/classifiers/HouseNumberClassifier.test.d.ts +0 -7
- package/out/classifiers/HouseNumberClassifier.test.d.ts.map +0 -1
- package/out/classifiers/HouseNumberClassifier.test.js +0 -242
- package/out/classifiers/HouseNumberClassifier.test.js.map +0 -1
- package/out/classifiers/IntersectionClassifier.d.ts +0 -11
- package/out/classifiers/IntersectionClassifier.d.ts.map +0 -1
- package/out/classifiers/IntersectionClassifier.js +0 -33
- package/out/classifiers/IntersectionClassifier.js.map +0 -1
- package/out/classifiers/LevelClassifier.d.ts +0 -11
- package/out/classifiers/LevelClassifier.d.ts.map +0 -1
- package/out/classifiers/LevelClassifier.js +0 -28
- package/out/classifiers/LevelClassifier.js.map +0 -1
- package/out/classifiers/LevelDesignatorClassifier.d.ts +0 -11
- package/out/classifiers/LevelDesignatorClassifier.d.ts.map +0 -1
- package/out/classifiers/LevelDesignatorClassifier.js +0 -21
- package/out/classifiers/LevelDesignatorClassifier.js.map +0 -1
- package/out/classifiers/LevelDesignatorClassifier.test.d.ts +0 -7
- package/out/classifiers/LevelDesignatorClassifier.test.d.ts.map +0 -1
- package/out/classifiers/LevelDesignatorClassifier.test.js +0 -17
- package/out/classifiers/LevelDesignatorClassifier.test.js.map +0 -1
- package/out/classifiers/MiddleInitialClassifier.d.ts +0 -10
- package/out/classifiers/MiddleInitialClassifier.d.ts.map +0 -1
- package/out/classifiers/MiddleInitialClassifier.js +0 -18
- package/out/classifiers/MiddleInitialClassifier.js.map +0 -1
- package/out/classifiers/MiddleInitialClassifier.test.d.ts +0 -7
- package/out/classifiers/MiddleInitialClassifier.test.d.ts.map +0 -1
- package/out/classifiers/MiddleInitialClassifier.test.js +0 -21
- package/out/classifiers/MiddleInitialClassifier.test.js.map +0 -1
- package/out/classifiers/OrdinalClassifier.d.ts +0 -10
- package/out/classifiers/OrdinalClassifier.d.ts.map +0 -1
- package/out/classifiers/OrdinalClassifier.js +0 -23
- package/out/classifiers/OrdinalClassifier.js.map +0 -1
- package/out/classifiers/OrdinalClassifier.test.d.ts +0 -7
- package/out/classifiers/OrdinalClassifier.test.d.ts.map +0 -1
- package/out/classifiers/OrdinalClassifier.test.js +0 -30
- package/out/classifiers/OrdinalClassifier.test.js.map +0 -1
- package/out/classifiers/PersonClassifier.d.ts +0 -11
- package/out/classifiers/PersonClassifier.d.ts.map +0 -1
- package/out/classifiers/PersonClassifier.js +0 -30
- package/out/classifiers/PersonClassifier.js.map +0 -1
- package/out/classifiers/PersonClassifier.test.d.ts +0 -7
- package/out/classifiers/PersonClassifier.test.d.ts.map +0 -1
- package/out/classifiers/PersonClassifier.test.js +0 -19
- package/out/classifiers/PersonClassifier.test.js.map +0 -1
- package/out/classifiers/PersonalSuffixClassifier.d.ts +0 -11
- package/out/classifiers/PersonalSuffixClassifier.d.ts.map +0 -1
- package/out/classifiers/PersonalSuffixClassifier.js +0 -31
- package/out/classifiers/PersonalSuffixClassifier.js.map +0 -1
- package/out/classifiers/PersonalSuffixClassifier.test.d.ts +0 -7
- package/out/classifiers/PersonalSuffixClassifier.test.d.ts.map +0 -1
- package/out/classifiers/PersonalSuffixClassifier.test.js +0 -15
- package/out/classifiers/PersonalSuffixClassifier.test.js.map +0 -1
- package/out/classifiers/PersonalTitleClassifier.d.ts +0 -11
- package/out/classifiers/PersonalTitleClassifier.d.ts.map +0 -1
- package/out/classifiers/PersonalTitleClassifier.js +0 -32
- package/out/classifiers/PersonalTitleClassifier.js.map +0 -1
- package/out/classifiers/PersonalTitleClassifier.test.d.ts +0 -7
- package/out/classifiers/PersonalTitleClassifier.test.d.ts.map +0 -1
- package/out/classifiers/PersonalTitleClassifier.test.js +0 -23
- package/out/classifiers/PersonalTitleClassifier.test.js.map +0 -1
- package/out/classifiers/PlaceClassifier.d.ts +0 -11
- package/out/classifiers/PlaceClassifier.d.ts.map +0 -1
- package/out/classifiers/PlaceClassifier.js +0 -38
- package/out/classifiers/PlaceClassifier.js.map +0 -1
- package/out/classifiers/PlaceClassifier.test.d.ts +0 -7
- package/out/classifiers/PlaceClassifier.test.d.ts.map +0 -1
- package/out/classifiers/PlaceClassifier.test.js +0 -15
- package/out/classifiers/PlaceClassifier.test.js.map +0 -1
- package/out/classifiers/PostcodeClassifier.d.ts +0 -14
- package/out/classifiers/PostcodeClassifier.d.ts.map +0 -1
- package/out/classifiers/PostcodeClassifier.js +0 -62
- package/out/classifiers/PostcodeClassifier.js.map +0 -1
- package/out/classifiers/PostcodeClassifier.test.d.ts +0 -7
- package/out/classifiers/PostcodeClassifier.test.d.ts.map +0 -1
- package/out/classifiers/PostcodeClassifier.test.js +0 -65
- package/out/classifiers/PostcodeClassifier.test.js.map +0 -1
- package/out/classifiers/RoadTypeClassifier.d.ts +0 -11
- package/out/classifiers/RoadTypeClassifier.d.ts.map +0 -1
- package/out/classifiers/RoadTypeClassifier.js +0 -20
- package/out/classifiers/RoadTypeClassifier.js.map +0 -1
- package/out/classifiers/RoadTypeClassifier.test.d.ts +0 -7
- package/out/classifiers/RoadTypeClassifier.test.d.ts.map +0 -1
- package/out/classifiers/RoadTypeClassifier.test.js +0 -29
- package/out/classifiers/RoadTypeClassifier.test.js.map +0 -1
- package/out/classifiers/StopWordClassifier.d.ts +0 -14
- package/out/classifiers/StopWordClassifier.d.ts.map +0 -1
- package/out/classifiers/StopWordClassifier.js +0 -35
- package/out/classifiers/StopWordClassifier.js.map +0 -1
- package/out/classifiers/StopWordClassifier.test.d.ts +0 -7
- package/out/classifiers/StopWordClassifier.test.d.ts.map +0 -1
- package/out/classifiers/StopWordClassifier.test.js +0 -17
- package/out/classifiers/StopWordClassifier.test.js.map +0 -1
- package/out/classifiers/StreetPrefixClassifier.d.ts +0 -11
- package/out/classifiers/StreetPrefixClassifier.d.ts.map +0 -1
- package/out/classifiers/StreetPrefixClassifier.js +0 -40
- package/out/classifiers/StreetPrefixClassifier.js.map +0 -1
- package/out/classifiers/StreetPrefixClassifier.test.d.ts +0 -7
- package/out/classifiers/StreetPrefixClassifier.test.d.ts.map +0 -1
- package/out/classifiers/StreetPrefixClassifier.test.js +0 -26
- package/out/classifiers/StreetPrefixClassifier.test.js.map +0 -1
- package/out/classifiers/StreetProperNameClassifier.d.ts +0 -16
- package/out/classifiers/StreetProperNameClassifier.d.ts.map +0 -1
- package/out/classifiers/StreetProperNameClassifier.js +0 -32
- package/out/classifiers/StreetProperNameClassifier.js.map +0 -1
- package/out/classifiers/StreetProperNameClassifier.test.d.ts +0 -7
- package/out/classifiers/StreetProperNameClassifier.test.d.ts.map +0 -1
- package/out/classifiers/StreetProperNameClassifier.test.js +0 -13
- package/out/classifiers/StreetProperNameClassifier.test.js.map +0 -1
- package/out/classifiers/StreetSuffixClassifier.d.ts +0 -11
- package/out/classifiers/StreetSuffixClassifier.d.ts.map +0 -1
- package/out/classifiers/StreetSuffixClassifier.js +0 -50
- package/out/classifiers/StreetSuffixClassifier.js.map +0 -1
- package/out/classifiers/StreetSuffixClassifier.test.d.ts +0 -7
- package/out/classifiers/StreetSuffixClassifier.test.d.ts.map +0 -1
- package/out/classifiers/StreetSuffixClassifier.test.js +0 -51
- package/out/classifiers/StreetSuffixClassifier.test.js.map +0 -1
- package/out/classifiers/SurnameClassifier.d.ts +0 -11
- package/out/classifiers/SurnameClassifier.d.ts.map +0 -1
- package/out/classifiers/SurnameClassifier.js +0 -29
- package/out/classifiers/SurnameClassifier.js.map +0 -1
- package/out/classifiers/SurnameClassifier.test.d.ts +0 -7
- package/out/classifiers/SurnameClassifier.test.d.ts.map +0 -1
- package/out/classifiers/SurnameClassifier.test.js +0 -13
- package/out/classifiers/SurnameClassifier.test.js.map +0 -1
- package/out/classifiers/TokenPositionClassifier.d.ts +0 -20
- package/out/classifiers/TokenPositionClassifier.d.ts.map +0 -1
- package/out/classifiers/TokenPositionClassifier.js +0 -40
- package/out/classifiers/TokenPositionClassifier.js.map +0 -1
- package/out/classifiers/TokenPositionClassifier.test.d.ts +0 -7
- package/out/classifiers/TokenPositionClassifier.test.d.ts.map +0 -1
- package/out/classifiers/TokenPositionClassifier.test.js +0 -81
- package/out/classifiers/TokenPositionClassifier.test.js.map +0 -1
- package/out/classifiers/ToponymClassifier.d.ts +0 -11
- package/out/classifiers/ToponymClassifier.d.ts.map +0 -1
- package/out/classifiers/ToponymClassifier.js +0 -26
- package/out/classifiers/ToponymClassifier.js.map +0 -1
- package/out/classifiers/ToponymClassifier.test.d.ts +0 -7
- package/out/classifiers/ToponymClassifier.test.d.ts.map +0 -1
- package/out/classifiers/ToponymClassifier.test.js +0 -26
- package/out/classifiers/ToponymClassifier.test.js.map +0 -1
- package/out/classifiers/UnitClassifier.d.ts +0 -11
- package/out/classifiers/UnitClassifier.d.ts.map +0 -1
- package/out/classifiers/UnitClassifier.js +0 -43
- package/out/classifiers/UnitClassifier.js.map +0 -1
- package/out/classifiers/UnitClassifier.test.d.ts +0 -7
- package/out/classifiers/UnitClassifier.test.d.ts.map +0 -1
- package/out/classifiers/UnitClassifier.test.js +0 -78
- package/out/classifiers/UnitClassifier.test.js.map +0 -1
- package/out/classifiers/UnitDesignatorClassifier.d.ts +0 -11
- package/out/classifiers/UnitDesignatorClassifier.d.ts.map +0 -1
- package/out/classifiers/UnitDesignatorClassifier.js +0 -25
- package/out/classifiers/UnitDesignatorClassifier.js.map +0 -1
- package/out/classifiers/UnitDesignatorClassifier.test.d.ts +0 -7
- package/out/classifiers/UnitDesignatorClassifier.test.d.ts.map +0 -1
- package/out/classifiers/UnitDesignatorClassifier.test.js +0 -14
- package/out/classifiers/UnitDesignatorClassifier.test.js.map +0 -1
- package/out/classifiers/UnitTypeUnitClassifier.test.d.ts +0 -7
- package/out/classifiers/UnitTypeUnitClassifier.test.d.ts.map +0 -1
- package/out/classifiers/UnitTypeUnitClassifier.test.js +0 -26
- package/out/classifiers/UnitTypeUnitClassifier.test.js.map +0 -1
- package/out/classifiers/WhosOnFirstClassifier.d.ts +0 -16
- package/out/classifiers/WhosOnFirstClassifier.d.ts.map +0 -1
- package/out/classifiers/WhosOnFirstClassifier.js +0 -148
- package/out/classifiers/WhosOnFirstClassifier.js.map +0 -1
- package/out/classifiers/WhosOnFirstClassifier.test.d.ts +0 -7
- package/out/classifiers/WhosOnFirstClassifier.test.d.ts.map +0 -1
- package/out/classifiers/WhosOnFirstClassifier.test.js +0 -33
- package/out/classifiers/WhosOnFirstClassifier.test.js.map +0 -1
- package/out/classifiers/composite/index.d.ts +0 -12
- package/out/classifiers/composite/index.d.ts.map +0 -1
- package/out/classifiers/composite/index.js +0 -12
- package/out/classifiers/composite/index.js.map +0 -1
- package/out/classifiers/composite/intersection.d.ts +0 -10
- package/out/classifiers/composite/intersection.d.ts.map +0 -1
- package/out/classifiers/composite/intersection.js +0 -115
- package/out/classifiers/composite/intersection.js.map +0 -1
- package/out/classifiers/composite/person.d.ts +0 -10
- package/out/classifiers/composite/person.d.ts.map +0 -1
- package/out/classifiers/composite/person.js +0 -112
- package/out/classifiers/composite/person.js.map +0 -1
- package/out/classifiers/composite/street.d.ts +0 -10
- package/out/classifiers/composite/street.d.ts.map +0 -1
- package/out/classifiers/composite/street.js +0 -384
- package/out/classifiers/composite/street.js.map +0 -1
- package/out/classifiers/composite/street_name.d.ts +0 -10
- package/out/classifiers/composite/street_name.d.ts.map +0 -1
- package/out/classifiers/composite/street_name.js +0 -78
- package/out/classifiers/composite/street_name.js.map +0 -1
- package/out/classifiers/composite/subdivision.d.ts +0 -10
- package/out/classifiers/composite/subdivision.d.ts.map +0 -1
- package/out/classifiers/composite/subdivision.js +0 -29
- package/out/classifiers/composite/subdivision.js.map +0 -1
- package/out/classifiers/composite/venue.d.ts +0 -10
- package/out/classifiers/composite/venue.d.ts.map +0 -1
- package/out/classifiers/composite/venue.js +0 -213
- package/out/classifiers/composite/venue.js.map +0 -1
- package/out/classifiers/index.d.ts +0 -38
- package/out/classifiers/index.d.ts.map +0 -1
- package/out/classifiers/index.js +0 -38
- package/out/classifiers/index.js.map +0 -1
- package/out/core/classification/BaseClassifier.d.ts +0 -35
- package/out/core/classification/BaseClassifier.d.ts.map +0 -1
- package/out/core/classification/BaseClassifier.js +0 -8
- package/out/core/classification/BaseClassifier.js.map +0 -1
- package/out/core/classification/Classification.d.ts +0 -79
- package/out/core/classification/Classification.d.ts.map +0 -1
- package/out/core/classification/Classification.js +0 -133
- package/out/core/classification/Classification.js.map +0 -1
- package/out/core/classification/CompositeClassifier.d.ts +0 -16
- package/out/core/classification/CompositeClassifier.d.ts.map +0 -1
- package/out/core/classification/CompositeClassifier.js +0 -112
- package/out/core/classification/CompositeClassifier.js.map +0 -1
- package/out/core/classification/PhraseClassifier.d.ts +0 -23
- package/out/core/classification/PhraseClassifier.d.ts.map +0 -1
- package/out/core/classification/PhraseClassifier.js +0 -32
- package/out/core/classification/PhraseClassifier.js.map +0 -1
- package/out/core/classification/SectionClassifier.d.ts +0 -23
- package/out/core/classification/SectionClassifier.d.ts.map +0 -1
- package/out/core/classification/SectionClassifier.js +0 -27
- package/out/core/classification/SectionClassifier.js.map +0 -1
- package/out/core/classification/WordClassifier.d.ts +0 -22
- package/out/core/classification/WordClassifier.d.ts.map +0 -1
- package/out/core/classification/WordClassifier.js +0 -33
- package/out/core/classification/WordClassifier.js.map +0 -1
- package/out/core/classification/index.d.ts +0 -13
- package/out/core/classification/index.d.ts.map +0 -1
- package/out/core/classification/index.js +0 -13
- package/out/core/classification/index.js.map +0 -1
- package/out/core/classification/scheme.d.ts +0 -46
- package/out/core/classification/scheme.d.ts.map +0 -1
- package/out/core/classification/scheme.js +0 -37
- package/out/core/classification/scheme.js.map +0 -1
- package/out/core/formatter/index.d.ts +0 -11
- package/out/core/formatter/index.d.ts.map +0 -1
- package/out/core/formatter/index.js +0 -49
- package/out/core/formatter/index.js.map +0 -1
- package/out/core/index.d.ts +0 -12
- package/out/core/index.d.ts.map +0 -1
- package/out/core/index.js +0 -12
- package/out/core/index.js.map +0 -1
- package/out/core/parser/AddressParser.d.ts +0 -62
- package/out/core/parser/AddressParser.d.ts.map +0 -1
- package/out/core/parser/AddressParser.js +0 -96
- package/out/core/parser/AddressParser.js.map +0 -1
- package/out/core/parser/index.d.ts +0 -7
- package/out/core/parser/index.d.ts.map +0 -1
- package/out/core/parser/index.js +0 -7
- package/out/core/parser/index.js.map +0 -1
- package/out/core/resources/LocaleIndex.d.ts +0 -54
- package/out/core/resources/LocaleIndex.d.ts.map +0 -1
- package/out/core/resources/LocaleIndex.js +0 -90
- package/out/core/resources/LocaleIndex.js.map +0 -1
- package/out/core/resources/ResourceMapCache.d.ts +0 -40
- package/out/core/resources/ResourceMapCache.d.ts.map +0 -1
- package/out/core/resources/ResourceMapCache.js +0 -75
- package/out/core/resources/ResourceMapCache.js.map +0 -1
- package/out/core/resources/collections.d.ts +0 -28
- package/out/core/resources/collections.d.ts.map +0 -1
- package/out/core/resources/collections.js +0 -76
- package/out/core/resources/collections.js.map +0 -1
- package/out/core/resources/db/index.d.ts +0 -7
- package/out/core/resources/db/index.d.ts.map +0 -1
- package/out/core/resources/db/index.js +0 -7
- package/out/core/resources/db/index.js.map +0 -1
- package/out/core/resources/debugging.d.ts +0 -16
- package/out/core/resources/debugging.d.ts.map +0 -1
- package/out/core/resources/debugging.js +0 -12
- package/out/core/resources/debugging.js.map +0 -1
- package/out/core/resources/fs.d.ts +0 -12
- package/out/core/resources/fs.d.ts.map +0 -1
- package/out/core/resources/fs.js +0 -13
- package/out/core/resources/fs.js.map +0 -1
- package/out/core/resources/git.d.ts +0 -24
- package/out/core/resources/git.d.ts.map +0 -1
- package/out/core/resources/git.js +0 -36
- package/out/core/resources/git.js.map +0 -1
- package/out/core/resources/index.d.ts +0 -19
- package/out/core/resources/index.d.ts.map +0 -1
- package/out/core/resources/index.js +0 -19
- package/out/core/resources/index.js.map +0 -1
- package/out/core/resources/languages/index.d.ts +0 -24
- package/out/core/resources/languages/index.d.ts.map +0 -1
- package/out/core/resources/languages/index.js +0 -43
- package/out/core/resources/languages/index.js.map +0 -1
- package/out/core/resources/languages/types.gen.d.ts +0 -259
- package/out/core/resources/languages/types.gen.d.ts.map +0 -1
- package/out/core/resources/languages/types.gen.js +0 -983
- package/out/core/resources/languages/types.gen.js.map +0 -1
- package/out/core/resources/libaddressinput.d.ts +0 -103
- package/out/core/resources/libaddressinput.d.ts.map +0 -1
- package/out/core/resources/libaddressinput.js +0 -30
- package/out/core/resources/libaddressinput.js.map +0 -1
- package/out/core/resources/libpostal.d.ts +0 -31
- package/out/core/resources/libpostal.d.ts.map +0 -1
- package/out/core/resources/libpostal.js +0 -115
- package/out/core/resources/libpostal.js.map +0 -1
- package/out/core/resources/libpostal.test.d.ts +0 -7
- package/out/core/resources/libpostal.test.d.ts.map +0 -1
- package/out/core/resources/libpostal.test.js +0 -283
- package/out/core/resources/libpostal.test.js.map +0 -1
- package/out/core/resources/locale.d.ts +0 -14
- package/out/core/resources/locale.d.ts.map +0 -1
- package/out/core/resources/locale.js +0 -22
- package/out/core/resources/locale.js.map +0 -1
- package/out/core/resources/set.d.ts +0 -62
- package/out/core/resources/set.d.ts.map +0 -1
- package/out/core/resources/set.js +0 -149
- package/out/core/resources/set.js.map +0 -1
- package/out/core/resources/whosonfirst/DataSourceCache.d.ts +0 -18
- package/out/core/resources/whosonfirst/DataSourceCache.d.ts.map +0 -1
- package/out/core/resources/whosonfirst/DataSourceCache.js +0 -53
- package/out/core/resources/whosonfirst/DataSourceCache.js.map +0 -1
- package/out/core/resources/whosonfirst/PlacetypeDataSource.d.ts +0 -74
- package/out/core/resources/whosonfirst/PlacetypeDataSource.d.ts.map +0 -1
- package/out/core/resources/whosonfirst/PlacetypeDataSource.js +0 -111
- package/out/core/resources/whosonfirst/PlacetypeDataSource.js.map +0 -1
- package/out/core/resources/whosonfirst/index.d.ts +0 -10
- package/out/core/resources/whosonfirst/index.d.ts.map +0 -1
- package/out/core/resources/whosonfirst/index.js +0 -10
- package/out/core/resources/whosonfirst/index.js.map +0 -1
- package/out/core/resources/whosonfirst/loader.d.ts +0 -56
- package/out/core/resources/whosonfirst/loader.d.ts.map +0 -1
- package/out/core/resources/whosonfirst/loader.js +0 -114
- package/out/core/resources/whosonfirst/loader.js.map +0 -1
- package/out/core/resources/whosonfirst/placetypes/Placetype.d.ts +0 -128
- package/out/core/resources/whosonfirst/placetypes/Placetype.d.ts.map +0 -1
- package/out/core/resources/whosonfirst/placetypes/Placetype.js +0 -337
- package/out/core/resources/whosonfirst/placetypes/Placetype.js.map +0 -1
- package/out/core/resources/whosonfirst/placetypes/admin.d.ts +0 -48
- package/out/core/resources/whosonfirst/placetypes/admin.d.ts.map +0 -1
- package/out/core/resources/whosonfirst/placetypes/admin.js +0 -61
- package/out/core/resources/whosonfirst/placetypes/admin.js.map +0 -1
- package/out/core/resources/whosonfirst/placetypes/definition.d.ts +0 -73
- package/out/core/resources/whosonfirst/placetypes/definition.d.ts.map +0 -1
- package/out/core/resources/whosonfirst/placetypes/definition.js +0 -26
- package/out/core/resources/whosonfirst/placetypes/definition.js.map +0 -1
- package/out/core/resources/whosonfirst/placetypes/index.d.ts +0 -10
- package/out/core/resources/whosonfirst/placetypes/index.d.ts.map +0 -1
- package/out/core/resources/whosonfirst/placetypes/index.js +0 -10
- package/out/core/resources/whosonfirst/placetypes/index.js.map +0 -1
- package/out/core/resources/whosonfirst/placetypes/mermaid.d.ts +0 -20
- package/out/core/resources/whosonfirst/placetypes/mermaid.d.ts.map +0 -1
- package/out/core/resources/whosonfirst/placetypes/mermaid.js +0 -43
- package/out/core/resources/whosonfirst/placetypes/mermaid.js.map +0 -1
- package/out/core/solver/BaseSolver.d.ts +0 -24
- package/out/core/solver/BaseSolver.d.ts.map +0 -1
- package/out/core/solver/BaseSolver.js +0 -7
- package/out/core/solver/BaseSolver.js.map +0 -1
- package/out/core/solver/HashMapSolver.d.ts +0 -15
- package/out/core/solver/HashMapSolver.d.ts.map +0 -1
- package/out/core/solver/HashMapSolver.js +0 -61
- package/out/core/solver/HashMapSolver.js.map +0 -1
- package/out/core/solver/Solution.d.ts +0 -69
- package/out/core/solver/Solution.d.ts.map +0 -1
- package/out/core/solver/Solution.js +0 -136
- package/out/core/solver/Solution.js.map +0 -1
- package/out/core/solver/SolutionMatch.d.ts +0 -69
- package/out/core/solver/SolutionMatch.d.ts.map +0 -1
- package/out/core/solver/SolutionMatch.js +0 -100
- package/out/core/solver/SolutionMatch.js.map +0 -1
- package/out/core/solver/index.d.ts +0 -11
- package/out/core/solver/index.d.ts.map +0 -1
- package/out/core/solver/index.js +0 -11
- package/out/core/solver/index.js.map +0 -1
- package/out/core/solver/mask.d.ts +0 -27
- package/out/core/solver/mask.d.ts.map +0 -1
- package/out/core/solver/mask.js +0 -50
- package/out/core/solver/mask.js.map +0 -1
- package/out/core/solver/mask.test.d.ts +0 -7
- package/out/core/solver/mask.test.d.ts.map +0 -1
- package/out/core/solver/mask.test.js +0 -39
- package/out/core/solver/mask.test.js.map +0 -1
- package/out/core/tokenization/Graph.d.ts +0 -35
- package/out/core/tokenization/Graph.d.ts.map +0 -1
- package/out/core/tokenization/Graph.js +0 -38
- package/out/core/tokenization/Graph.js.map +0 -1
- package/out/core/tokenization/Span.d.ts +0 -116
- package/out/core/tokenization/Span.d.ts.map +0 -1
- package/out/core/tokenization/Span.js +0 -212
- package/out/core/tokenization/Span.js.map +0 -1
- package/out/core/tokenization/Span.test.d.ts +0 -7
- package/out/core/tokenization/Span.test.d.ts.map +0 -1
- package/out/core/tokenization/Span.test.js +0 -202
- package/out/core/tokenization/Span.test.js.map +0 -1
- package/out/core/tokenization/context.d.ts +0 -39
- package/out/core/tokenization/context.d.ts.map +0 -1
- package/out/core/tokenization/context.js +0 -114
- package/out/core/tokenization/context.js.map +0 -1
- package/out/core/tokenization/context.test.d.ts +0 -7
- package/out/core/tokenization/context.test.d.ts.map +0 -1
- package/out/core/tokenization/context.test.js +0 -157
- package/out/core/tokenization/context.test.js.map +0 -1
- package/out/core/tokenization/index.d.ts +0 -11
- package/out/core/tokenization/index.d.ts.map +0 -1
- package/out/core/tokenization/index.js +0 -11
- package/out/core/tokenization/index.js.map +0 -1
- package/out/core/tokenization/normalizer.d.ts +0 -41
- package/out/core/tokenization/normalizer.d.ts.map +0 -1
- package/out/core/tokenization/normalizer.js +0 -94
- package/out/core/tokenization/normalizer.js.map +0 -1
- package/out/core/tokenization/normalizer.test.d.ts +0 -7
- package/out/core/tokenization/normalizer.test.d.ts.map +0 -1
- package/out/core/tokenization/normalizer.test.js +0 -49
- package/out/core/tokenization/normalizer.test.js.map +0 -1
- package/out/core/tokenization/permutate.d.ts +0 -29
- package/out/core/tokenization/permutate.d.ts.map +0 -1
- package/out/core/tokenization/permutate.js +0 -73
- package/out/core/tokenization/permutate.js.map +0 -1
- package/out/core/tokenization/permutate.test.d.ts +0 -7
- package/out/core/tokenization/permutate.test.d.ts.map +0 -1
- package/out/core/tokenization/permutate.test.js +0 -332
- package/out/core/tokenization/permutate.test.js.map +0 -1
- package/out/core/tokenization/split.d.ts +0 -22
- package/out/core/tokenization/split.d.ts.map +0 -1
- package/out/core/tokenization/split.js +0 -63
- package/out/core/tokenization/split.js.map +0 -1
- package/out/core/tokenization/split.test.d.ts +0 -7
- package/out/core/tokenization/split.test.d.ts.map +0 -1
- package/out/core/tokenization/split.test.js +0 -84
- package/out/core/tokenization/split.test.js.map +0 -1
- package/out/filters/InvalidSolutionFilter.d.ts +0 -19
- package/out/filters/InvalidSolutionFilter.d.ts.map +0 -1
- package/out/filters/InvalidSolutionFilter.js +0 -29
- package/out/filters/InvalidSolutionFilter.js.map +0 -1
- package/out/filters/RelationshipFilter.d.ts +0 -14
- package/out/filters/RelationshipFilter.d.ts.map +0 -1
- package/out/filters/RelationshipFilter.js +0 -63
- package/out/filters/RelationshipFilter.js.map +0 -1
- package/out/filters/RelationshipFilter.test.d.ts +0 -7
- package/out/filters/RelationshipFilter.test.d.ts.map +0 -1
- package/out/filters/RelationshipFilter.test.js +0 -45
- package/out/filters/RelationshipFilter.test.js.map +0 -1
- package/out/filters/SubsetFilter.d.ts +0 -10
- package/out/filters/SubsetFilter.d.ts.map +0 -1
- package/out/filters/SubsetFilter.js +0 -26
- package/out/filters/SubsetFilter.js.map +0 -1
- package/out/filters/SubsetFilter.test.d.ts +0 -7
- package/out/filters/SubsetFilter.test.d.ts.map +0 -1
- package/out/filters/SubsetFilter.test.js +0 -53
- package/out/filters/SubsetFilter.test.js.map +0 -1
- package/out/filters/TokenDistanceFilter.d.ts +0 -10
- package/out/filters/TokenDistanceFilter.d.ts.map +0 -1
- package/out/filters/TokenDistanceFilter.js +0 -30
- package/out/filters/TokenDistanceFilter.js.map +0 -1
- package/out/filters/index.d.ts +0 -10
- package/out/filters/index.d.ts.map +0 -1
- package/out/filters/index.js +0 -10
- package/out/filters/index.js.map +0 -1
- package/out/scripts/generate-language-types.d.ts +0 -7
- package/out/scripts/generate-language-types.d.ts.map +0 -1
- package/out/scripts/generate-language-types.js +0 -127
- package/out/scripts/generate-language-types.js.map +0 -1
- package/out/scripts/generate.d.ts +0 -18
- package/out/scripts/generate.d.ts.map +0 -1
- package/out/scripts/generate.js +0 -144
- package/out/scripts/generate.js.map +0 -1
- package/out/sdk/repo.d.ts +0 -37
- package/out/sdk/repo.d.ts.map +0 -1
- package/out/sdk/repo.js +0 -49
- package/out/sdk/repo.js.map +0 -1
- package/out/solvers/ExclusiveCartesianSolver.d.ts +0 -12
- package/out/solvers/ExclusiveCartesianSolver.d.ts.map +0 -1
- package/out/solvers/ExclusiveCartesianSolver.js +0 -58
- package/out/solvers/ExclusiveCartesianSolver.js.map +0 -1
- package/out/solvers/HouseNumberPositionPenalty.d.ts +0 -10
- package/out/solvers/HouseNumberPositionPenalty.d.ts.map +0 -1
- package/out/solvers/HouseNumberPositionPenalty.js +0 -63
- package/out/solvers/HouseNumberPositionPenalty.js.map +0 -1
- package/out/solvers/LeadingAreaDeclassifier.d.ts +0 -13
- package/out/solvers/LeadingAreaDeclassifier.d.ts.map +0 -1
- package/out/solvers/LeadingAreaDeclassifier.js +0 -35
- package/out/solvers/LeadingAreaDeclassifier.js.map +0 -1
- package/out/solvers/MultiStreetSolver.d.ts +0 -32
- package/out/solvers/MultiStreetSolver.d.ts.map +0 -1
- package/out/solvers/MultiStreetSolver.js +0 -110
- package/out/solvers/MultiStreetSolver.js.map +0 -1
- package/out/solvers/OrphanedLevelTypeDeclassifier.d.ts +0 -10
- package/out/solvers/OrphanedLevelTypeDeclassifier.d.ts.map +0 -1
- package/out/solvers/OrphanedLevelTypeDeclassifier.js +0 -21
- package/out/solvers/OrphanedLevelTypeDeclassifier.js.map +0 -1
- package/out/solvers/OrphanedUnitTypeDeclassifier.d.ts +0 -10
- package/out/solvers/OrphanedUnitTypeDeclassifier.d.ts.map +0 -1
- package/out/solvers/OrphanedUnitTypeDeclassifier.js +0 -21
- package/out/solvers/OrphanedUnitTypeDeclassifier.js.map +0 -1
- package/out/solvers/OrphanedUnitTypeDeclassifier.test.d.ts +0 -7
- package/out/solvers/OrphanedUnitTypeDeclassifier.test.d.ts.map +0 -1
- package/out/solvers/OrphanedUnitTypeDeclassifier.test.js +0 -49
- package/out/solvers/OrphanedUnitTypeDeclassifier.test.js.map +0 -1
- package/out/solvers/PostcodePositionPenalty.d.ts +0 -16
- package/out/solvers/PostcodePositionPenalty.d.ts.map +0 -1
- package/out/solvers/PostcodePositionPenalty.js +0 -33
- package/out/solvers/PostcodePositionPenalty.js.map +0 -1
- package/out/solvers/VenueCaptureSolver.d.ts +0 -13
- package/out/solvers/VenueCaptureSolver.d.ts.map +0 -1
- package/out/solvers/VenueCaptureSolver.js +0 -22
- package/out/solvers/VenueCaptureSolver.js.map +0 -1
- package/out/solvers/index.d.ts +0 -14
- package/out/solvers/index.d.ts.map +0 -1
- package/out/solvers/index.js +0 -14
- package/out/solvers/index.js.map +0 -1
- package/out/test/address.aus.test.d.ts +0 -7
- package/out/test/address.aus.test.d.ts.map +0 -1
- package/out/test/address.aus.test.js +0 -90
- package/out/test/address.aus.test.js.map +0 -1
- package/out/test/address.bra.test.d.ts +0 -7
- package/out/test/address.bra.test.d.ts.map +0 -1
- package/out/test/address.bra.test.js +0 -17
- package/out/test/address.bra.test.js.map +0 -1
- package/out/test/address.cze.test.d.ts +0 -7
- package/out/test/address.cze.test.d.ts.map +0 -1
- package/out/test/address.cze.test.js +0 -31
- package/out/test/address.cze.test.js.map +0 -1
- package/out/test/address.deu.test.d.ts +0 -7
- package/out/test/address.deu.test.d.ts.map +0 -1
- package/out/test/address.deu.test.js +0 -138
- package/out/test/address.deu.test.js.map +0 -1
- package/out/test/address.esp.test.d.ts +0 -7
- package/out/test/address.esp.test.d.ts.map +0 -1
- package/out/test/address.esp.test.js +0 -16
- package/out/test/address.esp.test.js.map +0 -1
- package/out/test/address.fra.test.d.ts +0 -7
- package/out/test/address.fra.test.d.ts.map +0 -1
- package/out/test/address.fra.test.js +0 -231
- package/out/test/address.fra.test.js.map +0 -1
- package/out/test/address.gbr.test.d.ts +0 -7
- package/out/test/address.gbr.test.d.ts.map +0 -1
- package/out/test/address.gbr.test.js +0 -30
- package/out/test/address.gbr.test.js.map +0 -1
- package/out/test/address.hrv.test.d.ts +0 -7
- package/out/test/address.hrv.test.d.ts.map +0 -1
- package/out/test/address.hrv.test.js +0 -15
- package/out/test/address.hrv.test.js.map +0 -1
- package/out/test/address.ind.test.d.ts +0 -7
- package/out/test/address.ind.test.d.ts.map +0 -1
- package/out/test/address.ind.test.js +0 -17
- package/out/test/address.ind.test.js.map +0 -1
- package/out/test/address.nld.test.d.ts +0 -7
- package/out/test/address.nld.test.d.ts.map +0 -1
- package/out/test/address.nld.test.js +0 -162
- package/out/test/address.nld.test.js.map +0 -1
- package/out/test/address.nor.test.d.ts +0 -7
- package/out/test/address.nor.test.d.ts.map +0 -1
- package/out/test/address.nor.test.js +0 -70
- package/out/test/address.nor.test.js.map +0 -1
- package/out/test/address.nzd.test.d.ts +0 -7
- package/out/test/address.nzd.test.d.ts.map +0 -1
- package/out/test/address.nzd.test.js +0 -161
- package/out/test/address.nzd.test.js.map +0 -1
- package/out/test/address.pol.test.d.ts +0 -7
- package/out/test/address.pol.test.d.ts.map +0 -1
- package/out/test/address.pol.test.js +0 -51
- package/out/test/address.pol.test.js.map +0 -1
- package/out/test/address.prt.test.d.ts +0 -7
- package/out/test/address.prt.test.d.ts.map +0 -1
- package/out/test/address.prt.test.js +0 -71
- package/out/test/address.prt.test.js.map +0 -1
- package/out/test/address.rom.test.d.ts +0 -7
- package/out/test/address.rom.test.d.ts.map +0 -1
- package/out/test/address.rom.test.js +0 -44
- package/out/test/address.rom.test.js.map +0 -1
- package/out/test/address.svk.test.d.ts +0 -7
- package/out/test/address.svk.test.d.ts.map +0 -1
- package/out/test/address.svk.test.js +0 -14
- package/out/test/address.svk.test.js.map +0 -1
- package/out/test/address.swe.test.d.ts +0 -7
- package/out/test/address.swe.test.d.ts.map +0 -1
- package/out/test/address.swe.test.js +0 -35
- package/out/test/address.swe.test.js.map +0 -1
- package/out/test/address.usa.test.d.ts +0 -7
- package/out/test/address.usa.test.d.ts.map +0 -1
- package/out/test/address.usa.test.js +0 -506
- package/out/test/address.usa.test.js.map +0 -1
- package/out/test/addressit.aus.test.d.ts +0 -7
- package/out/test/addressit.aus.test.d.ts.map +0 -1
- package/out/test/addressit.aus.test.js +0 -94
- package/out/test/addressit.aus.test.js.map +0 -1
- package/out/test/addressit.usa.test.d.ts +0 -7
- package/out/test/addressit.usa.test.d.ts.map +0 -1
- package/out/test/addressit.usa.test.js +0 -174
- package/out/test/addressit.usa.test.js.map +0 -1
- package/out/test/compound_street.test.d.ts +0 -7
- package/out/test/compound_street.test.d.ts.map +0 -1
- package/out/test/compound_street.test.js +0 -35
- package/out/test/compound_street.test.js.map +0 -1
- package/out/test/functional.test.d.ts +0 -7
- package/out/test/functional.test.d.ts.map +0 -1
- package/out/test/functional.test.js +0 -217
- package/out/test/functional.test.js.map +0 -1
- package/out/test/intersection.test.d.ts +0 -7
- package/out/test/intersection.test.d.ts.map +0 -1
- package/out/test/intersection.test.js +0 -469
- package/out/test/intersection.test.js.map +0 -1
- package/out/test/libpostal.test.d.ts +0 -7
- package/out/test/libpostal.test.d.ts.map +0 -1
- package/out/test/libpostal.test.js +0 -17
- package/out/test/libpostal.test.js.map +0 -1
- package/out/test/place.fra.test.d.ts +0 -7
- package/out/test/place.fra.test.d.ts.map +0 -1
- package/out/test/place.fra.test.js +0 -103
- package/out/test/place.fra.test.js.map +0 -1
- package/out/test/transit.test.d.ts +0 -7
- package/out/test/transit.test.d.ts.map +0 -1
- package/out/test/transit.test.js +0 -19
- package/out/test/transit.test.js.map +0 -1
- package/out/test/venue.usa.test.d.ts +0 -7
- package/out/test/venue.usa.test.d.ts.map +0 -1
- package/out/test/venue.usa.test.js +0 -47
- package/out/test/venue.usa.test.js.map +0 -1
- package/resources/chromium-i18n/ssl-address/AC.json +0 -8
- package/resources/chromium-i18n/ssl-address/AD.json +0 -16
- package/resources/chromium-i18n/ssl-address/AE.json +0 -15
- package/resources/chromium-i18n/ssl-address/AF.json +0 -8
- package/resources/chromium-i18n/ssl-address/AG.json +0 -1
- package/resources/chromium-i18n/ssl-address/AI.json +0 -8
- package/resources/chromium-i18n/ssl-address/AL.json +0 -8
- package/resources/chromium-i18n/ssl-address/AM.json +0 -16
- package/resources/chromium-i18n/ssl-address/AO.json +0 -1
- package/resources/chromium-i18n/ssl-address/AQ.json +0 -1
- package/resources/chromium-i18n/ssl-address/AR.json +0 -16
- package/resources/chromium-i18n/ssl-address/AS.json +0 -13
- package/resources/chromium-i18n/ssl-address/AT.json +0 -10
- package/resources/chromium-i18n/ssl-address/AU.json +0 -20
- package/resources/chromium-i18n/ssl-address/AW.json +0 -1
- package/resources/chromium-i18n/ssl-address/AX.json +0 -11
- package/resources/chromium-i18n/ssl-address/AZ.json +0 -9
- package/resources/chromium-i18n/ssl-address/BA.json +0 -8
- package/resources/chromium-i18n/ssl-address/BB.json +0 -9
- package/resources/chromium-i18n/ssl-address/BD.json +0 -9
- package/resources/chromium-i18n/ssl-address/BE.json +0 -10
- package/resources/chromium-i18n/ssl-address/BF.json +0 -6
- package/resources/chromium-i18n/ssl-address/BG.json +0 -9
- package/resources/chromium-i18n/ssl-address/BH.json +0 -8
- package/resources/chromium-i18n/ssl-address/BI.json +0 -1
- package/resources/chromium-i18n/ssl-address/BJ.json +0 -1
- package/resources/chromium-i18n/ssl-address/BL.json +0 -11
- package/resources/chromium-i18n/ssl-address/BM.json +0 -9
- package/resources/chromium-i18n/ssl-address/BN.json +0 -9
- package/resources/chromium-i18n/ssl-address/BO.json +0 -1
- package/resources/chromium-i18n/ssl-address/BQ.json +0 -1
- package/resources/chromium-i18n/ssl-address/BR.json +0 -21
- package/resources/chromium-i18n/ssl-address/BS.json +0 -12
- package/resources/chromium-i18n/ssl-address/BT.json +0 -9
- package/resources/chromium-i18n/ssl-address/BV.json +0 -1
- package/resources/chromium-i18n/ssl-address/BW.json +0 -1
- package/resources/chromium-i18n/ssl-address/BY.json +0 -9
- package/resources/chromium-i18n/ssl-address/BZ.json +0 -1
- package/resources/chromium-i18n/ssl-address/CA.json +0 -17
- package/resources/chromium-i18n/ssl-address/CC.json +0 -9
- package/resources/chromium-i18n/ssl-address/CD.json +0 -1
- package/resources/chromium-i18n/ssl-address/CF.json +0 -1
- package/resources/chromium-i18n/ssl-address/CG.json +0 -1
- package/resources/chromium-i18n/ssl-address/CH.json +0 -12
- package/resources/chromium-i18n/ssl-address/CI.json +0 -6
- package/resources/chromium-i18n/ssl-address/CK.json +0 -1
- package/resources/chromium-i18n/ssl-address/CL.json +0 -15
- package/resources/chromium-i18n/ssl-address/CM.json +0 -1
- package/resources/chromium-i18n/ssl-address/CN.json +0 -22
- package/resources/chromium-i18n/ssl-address/CO.json +0 -11
- package/resources/chromium-i18n/ssl-address/CR.json +0 -10
- package/resources/chromium-i18n/ssl-address/CU.json +0 -12
- package/resources/chromium-i18n/ssl-address/CV.json +0 -13
- package/resources/chromium-i18n/ssl-address/CW.json +0 -1
- package/resources/chromium-i18n/ssl-address/CX.json +0 -9
- package/resources/chromium-i18n/ssl-address/CY.json +0 -8
- package/resources/chromium-i18n/ssl-address/CZ.json +0 -10
- package/resources/chromium-i18n/ssl-address/DE.json +0 -10
- package/resources/chromium-i18n/ssl-address/DJ.json +0 -1
- package/resources/chromium-i18n/ssl-address/DK.json +0 -10
- package/resources/chromium-i18n/ssl-address/DM.json +0 -1
- package/resources/chromium-i18n/ssl-address/DO.json +0 -9
- package/resources/chromium-i18n/ssl-address/DZ.json +0 -8
- package/resources/chromium-i18n/ssl-address/EC.json +0 -10
- package/resources/chromium-i18n/ssl-address/EE.json +0 -9
- package/resources/chromium-i18n/ssl-address/EG.json +0 -16
- package/resources/chromium-i18n/ssl-address/EH.json +0 -8
- package/resources/chromium-i18n/ssl-address/ER.json +0 -1
- package/resources/chromium-i18n/ssl-address/ES.json +0 -16
- package/resources/chromium-i18n/ssl-address/ET.json +0 -8
- package/resources/chromium-i18n/ssl-address/FI.json +0 -11
- package/resources/chromium-i18n/ssl-address/FJ.json +0 -1
- package/resources/chromium-i18n/ssl-address/FK.json +0 -10
- package/resources/chromium-i18n/ssl-address/FM.json +0 -13
- package/resources/chromium-i18n/ssl-address/FO.json +0 -10
- package/resources/chromium-i18n/ssl-address/FR.json +0 -11
- package/resources/chromium-i18n/ssl-address/GA.json +0 -1
- package/resources/chromium-i18n/ssl-address/GB.json +0 -12
- package/resources/chromium-i18n/ssl-address/GD.json +0 -1
- package/resources/chromium-i18n/ssl-address/GE.json +0 -9
- package/resources/chromium-i18n/ssl-address/GF.json +0 -11
- package/resources/chromium-i18n/ssl-address/GG.json +0 -11
- package/resources/chromium-i18n/ssl-address/GH.json +0 -1
- package/resources/chromium-i18n/ssl-address/GI.json +0 -9
- package/resources/chromium-i18n/ssl-address/GL.json +0 -9
- package/resources/chromium-i18n/ssl-address/GM.json +0 -1
- package/resources/chromium-i18n/ssl-address/GN.json +0 -8
- package/resources/chromium-i18n/ssl-address/GP.json +0 -11
- package/resources/chromium-i18n/ssl-address/GQ.json +0 -1
- package/resources/chromium-i18n/ssl-address/GR.json +0 -10
- package/resources/chromium-i18n/ssl-address/GS.json +0 -10
- package/resources/chromium-i18n/ssl-address/GT.json +0 -8
- package/resources/chromium-i18n/ssl-address/GU.json +0 -12
- package/resources/chromium-i18n/ssl-address/GW.json +0 -8
- package/resources/chromium-i18n/ssl-address/GY.json +0 -1
- package/resources/chromium-i18n/ssl-address/HK.json +0 -16
- package/resources/chromium-i18n/ssl-address/HM.json +0 -9
- package/resources/chromium-i18n/ssl-address/HN.json +0 -9
- package/resources/chromium-i18n/ssl-address/HR.json +0 -10
- package/resources/chromium-i18n/ssl-address/HT.json +0 -9
- package/resources/chromium-i18n/ssl-address/HU.json +0 -11
- package/resources/chromium-i18n/ssl-address/ID.json +0 -13
- package/resources/chromium-i18n/ssl-address/IE.json +0 -16
- package/resources/chromium-i18n/ssl-address/IL.json +0 -9
- package/resources/chromium-i18n/ssl-address/IM.json +0 -11
- package/resources/chromium-i18n/ssl-address/IN.json +0 -18
- package/resources/chromium-i18n/ssl-address/IO.json +0 -10
- package/resources/chromium-i18n/ssl-address/IQ.json +0 -10
- package/resources/chromium-i18n/ssl-address/IR.json +0 -14
- package/resources/chromium-i18n/ssl-address/IS.json +0 -9
- package/resources/chromium-i18n/ssl-address/IT.json +0 -17
- package/resources/chromium-i18n/ssl-address/JE.json +0 -11
- package/resources/chromium-i18n/ssl-address/JM.json +0 -12
- package/resources/chromium-i18n/ssl-address/JO.json +0 -8
- package/resources/chromium-i18n/ssl-address/JP.json +0 -19
- package/resources/chromium-i18n/ssl-address/KE.json +0 -8
- package/resources/chromium-i18n/ssl-address/KG.json +0 -8
- package/resources/chromium-i18n/ssl-address/KH.json +0 -8
- package/resources/chromium-i18n/ssl-address/KI.json +0 -8
- package/resources/chromium-i18n/ssl-address/KM.json +0 -1
- package/resources/chromium-i18n/ssl-address/KN.json +0 -12
- package/resources/chromium-i18n/ssl-address/KP.json +0 -12
- package/resources/chromium-i18n/ssl-address/KR.json +0 -23
- package/resources/chromium-i18n/ssl-address/KW.json +0 -8
- package/resources/chromium-i18n/ssl-address/KY.json +0 -14
- package/resources/chromium-i18n/ssl-address/KZ.json +0 -8
- package/resources/chromium-i18n/ssl-address/LA.json +0 -8
- package/resources/chromium-i18n/ssl-address/LB.json +0 -8
- package/resources/chromium-i18n/ssl-address/LC.json +0 -1
- package/resources/chromium-i18n/ssl-address/LI.json +0 -11
- package/resources/chromium-i18n/ssl-address/LK.json +0 -9
- package/resources/chromium-i18n/ssl-address/LR.json +0 -8
- package/resources/chromium-i18n/ssl-address/LS.json +0 -8
- package/resources/chromium-i18n/ssl-address/LT.json +0 -10
- package/resources/chromium-i18n/ssl-address/LU.json +0 -11
- package/resources/chromium-i18n/ssl-address/LV.json +0 -9
- package/resources/chromium-i18n/ssl-address/LY.json +0 -1
- package/resources/chromium-i18n/ssl-address/MA.json +0 -8
- package/resources/chromium-i18n/ssl-address/MC.json +0 -9
- package/resources/chromium-i18n/ssl-address/MD.json +0 -9
- package/resources/chromium-i18n/ssl-address/ME.json +0 -8
- package/resources/chromium-i18n/ssl-address/MF.json +0 -11
- package/resources/chromium-i18n/ssl-address/MG.json +0 -8
- package/resources/chromium-i18n/ssl-address/MH.json +0 -13
- package/resources/chromium-i18n/ssl-address/MK.json +0 -8
- package/resources/chromium-i18n/ssl-address/ML.json +0 -1
- package/resources/chromium-i18n/ssl-address/MM.json +0 -8
- package/resources/chromium-i18n/ssl-address/MN.json +0 -9
- package/resources/chromium-i18n/ssl-address/MO.json +0 -8
- package/resources/chromium-i18n/ssl-address/MP.json +0 -13
- package/resources/chromium-i18n/ssl-address/MQ.json +0 -11
- package/resources/chromium-i18n/ssl-address/MR.json +0 -1
- package/resources/chromium-i18n/ssl-address/MS.json +0 -1
- package/resources/chromium-i18n/ssl-address/MT.json +0 -10
- package/resources/chromium-i18n/ssl-address/MU.json +0 -9
- package/resources/chromium-i18n/ssl-address/MV.json +0 -9
- package/resources/chromium-i18n/ssl-address/MW.json +0 -1
- package/resources/chromium-i18n/ssl-address/MX.json +0 -20
- package/resources/chromium-i18n/ssl-address/MY.json +0 -19
- package/resources/chromium-i18n/ssl-address/MZ.json +0 -12
- package/resources/chromium-i18n/ssl-address/NA.json +0 -1
- package/resources/chromium-i18n/ssl-address/NC.json +0 -11
- package/resources/chromium-i18n/ssl-address/NE.json +0 -8
- package/resources/chromium-i18n/ssl-address/NF.json +0 -9
- package/resources/chromium-i18n/ssl-address/NG.json +0 -15
- package/resources/chromium-i18n/ssl-address/NI.json +0 -16
- package/resources/chromium-i18n/ssl-address/NL.json +0 -10
- package/resources/chromium-i18n/ssl-address/NO.json +0 -11
- package/resources/chromium-i18n/ssl-address/NP.json +0 -9
- package/resources/chromium-i18n/ssl-address/NR.json +0 -12
- package/resources/chromium-i18n/ssl-address/NU.json +0 -1
- package/resources/chromium-i18n/ssl-address/NZ.json +0 -10
- package/resources/chromium-i18n/ssl-address/OM.json +0 -8
- package/resources/chromium-i18n/ssl-address/PA.json +0 -7
- package/resources/chromium-i18n/ssl-address/PE.json +0 -14
- package/resources/chromium-i18n/ssl-address/PF.json +0 -11
- package/resources/chromium-i18n/ssl-address/PG.json +0 -9
- package/resources/chromium-i18n/ssl-address/PH.json +0 -15
- package/resources/chromium-i18n/ssl-address/PK.json +0 -9
- package/resources/chromium-i18n/ssl-address/PL.json +0 -10
- package/resources/chromium-i18n/ssl-address/PM.json +0 -10
- package/resources/chromium-i18n/ssl-address/PN.json +0 -10
- package/resources/chromium-i18n/ssl-address/PR.json +0 -13
- package/resources/chromium-i18n/ssl-address/PS.json +0 -1
- package/resources/chromium-i18n/ssl-address/PT.json +0 -10
- package/resources/chromium-i18n/ssl-address/PW.json +0 -13
- package/resources/chromium-i18n/ssl-address/PY.json +0 -8
- package/resources/chromium-i18n/ssl-address/QA.json +0 -1
- package/resources/chromium-i18n/ssl-address/RE.json +0 -11
- package/resources/chromium-i18n/ssl-address/RO.json +0 -10
- package/resources/chromium-i18n/ssl-address/RS.json +0 -9
- package/resources/chromium-i18n/ssl-address/RU.json +0 -20
- package/resources/chromium-i18n/ssl-address/RW.json +0 -1
- package/resources/chromium-i18n/ssl-address/SA.json +0 -8
- package/resources/chromium-i18n/ssl-address/SB.json +0 -1
- package/resources/chromium-i18n/ssl-address/SC.json +0 -8
- package/resources/chromium-i18n/ssl-address/SD.json +0 -9
- package/resources/chromium-i18n/ssl-address/SE.json +0 -12
- package/resources/chromium-i18n/ssl-address/SG.json +0 -10
- package/resources/chromium-i18n/ssl-address/SH.json +0 -10
- package/resources/chromium-i18n/ssl-address/SI.json +0 -9
- package/resources/chromium-i18n/ssl-address/SJ.json +0 -11
- package/resources/chromium-i18n/ssl-address/SK.json +0 -10
- package/resources/chromium-i18n/ssl-address/SL.json +0 -1
- package/resources/chromium-i18n/ssl-address/SM.json +0 -10
- package/resources/chromium-i18n/ssl-address/SN.json +0 -8
- package/resources/chromium-i18n/ssl-address/SO.json +0 -15
- package/resources/chromium-i18n/ssl-address/SR.json +0 -11
- package/resources/chromium-i18n/ssl-address/SS.json +0 -1
- package/resources/chromium-i18n/ssl-address/ST.json +0 -1
- package/resources/chromium-i18n/ssl-address/SV.json +0 -17
- package/resources/chromium-i18n/ssl-address/SX.json +0 -1
- package/resources/chromium-i18n/ssl-address/SY.json +0 -6
- package/resources/chromium-i18n/ssl-address/SZ.json +0 -10
- package/resources/chromium-i18n/ssl-address/TA.json +0 -8
- package/resources/chromium-i18n/ssl-address/TC.json +0 -10
- package/resources/chromium-i18n/ssl-address/TD.json +0 -1
- package/resources/chromium-i18n/ssl-address/TF.json +0 -1
- package/resources/chromium-i18n/ssl-address/TG.json +0 -1
- package/resources/chromium-i18n/ssl-address/TH.json +0 -16
- package/resources/chromium-i18n/ssl-address/TJ.json +0 -8
- package/resources/chromium-i18n/ssl-address/TK.json +0 -1
- package/resources/chromium-i18n/ssl-address/TL.json +0 -1
- package/resources/chromium-i18n/ssl-address/TM.json +0 -8
- package/resources/chromium-i18n/ssl-address/TN.json +0 -9
- package/resources/chromium-i18n/ssl-address/TO.json +0 -1
- package/resources/chromium-i18n/ssl-address/TR.json +0 -16
- package/resources/chromium-i18n/ssl-address/TT.json +0 -1
- package/resources/chromium-i18n/ssl-address/TV.json +0 -12
- package/resources/chromium-i18n/ssl-address/TW.json +0 -20
- package/resources/chromium-i18n/ssl-address/TZ.json +0 -8
- package/resources/chromium-i18n/ssl-address/UA.json +0 -19
- package/resources/chromium-i18n/ssl-address/UG.json +0 -1
- package/resources/chromium-i18n/ssl-address/UM.json +0 -13
- package/resources/chromium-i18n/ssl-address/US.json +0 -20
- package/resources/chromium-i18n/ssl-address/UY.json +0 -15
- package/resources/chromium-i18n/ssl-address/UZ.json +0 -10
- package/resources/chromium-i18n/ssl-address/VA.json +0 -8
- package/resources/chromium-i18n/ssl-address/VC.json +0 -9
- package/resources/chromium-i18n/ssl-address/VE.json +0 -16
- package/resources/chromium-i18n/ssl-address/VG.json +0 -9
- package/resources/chromium-i18n/ssl-address/VI.json +0 -13
- package/resources/chromium-i18n/ssl-address/VN.json +0 -15
- package/resources/chromium-i18n/ssl-address/VU.json +0 -1
- package/resources/chromium-i18n/ssl-address/WF.json +0 -10
- package/resources/chromium-i18n/ssl-address/WS.json +0 -1
- package/resources/chromium-i18n/ssl-address/XK.json +0 -8
- package/resources/chromium-i18n/ssl-address/YE.json +0 -1
- package/resources/chromium-i18n/ssl-address/YT.json +0 -10
- package/resources/chromium-i18n/ssl-address/ZA.json +0 -10
- package/resources/chromium-i18n/ssl-address/ZM.json +0 -8
- package/resources/chromium-i18n/ssl-address/ZW.json +0 -1
- package/resources/chromium-i18n/ssl-address-download.sh +0 -15
- package/resources/internal/dictionaries/languages.csv +0 -184
- package/resources/internal/dictionaries/libpostal/af/personal_titles.txt +0 -2
- package/resources/internal/dictionaries/libpostal/all/surnames.txt +0 -1
- package/resources/internal/dictionaries/libpostal/de/academic_degrees.txt +0 -7
- package/resources/internal/dictionaries/libpostal/de/concatenated_suffixes_separable.txt +0 -3
- package/resources/internal/dictionaries/libpostal/de/near.txt +0 -2
- package/resources/internal/dictionaries/libpostal/de/place_names.txt +0 -11
- package/resources/internal/dictionaries/libpostal/de/stopwords.txt +0 -1
- package/resources/internal/dictionaries/libpostal/de/street_types.txt +0 -2
- package/resources/internal/dictionaries/libpostal/en/place_names.txt +0 -7
- package/resources/internal/dictionaries/libpostal/en/road_types.txt +0 -18
- package/resources/internal/dictionaries/libpostal/en/street_names.txt +0 -2
- package/resources/internal/dictionaries/libpostal/en/street_types.txt +0 -16
- package/resources/internal/dictionaries/libpostal/en/unit_types_numbered.txt +0 -3
- package/resources/internal/dictionaries/libpostal/es/street_types.txt +0 -2
- package/resources/internal/dictionaries/libpostal/fr/personal_titles.txt +0 -4
- package/resources/internal/dictionaries/libpostal/fr/stopwords.txt +0 -2
- package/resources/internal/dictionaries/libpostal/fr/street_types.txt +0 -5
- package/resources/internal/dictionaries/libpostal/it/street_types.txt +0 -2
- package/resources/internal/dictionaries/libpostal/ko/street_types.txt +0 -1
- package/resources/internal/dictionaries/libpostal/nb/concatenated_suffixes_inseparable.txt +0 -40
- package/resources/internal/dictionaries/libpostal/nb/directionals.txt +0 -8
- package/resources/internal/dictionaries/libpostal/nb/street_types.txt +0 -36
- package/resources/internal/dictionaries/libpostal/nl/concatenated_suffixes_inseparable.txt +0 -1
- package/resources/internal/dictionaries/libpostal/nl/concatenated_suffixes_separable.txt +0 -8
- package/resources/internal/dictionaries/libpostal/nl/directionals.txt +0 -4
- package/resources/internal/dictionaries/libpostal/nl/personal_suffixes.txt +0 -4
- package/resources/internal/dictionaries/libpostal/nl/personal_titles.txt +0 -43
- package/resources/internal/dictionaries/libpostal/pl/place_names.txt +0 -1
- package/resources/internal/dictionaries/libpostal/pl/synonyms.txt +0 -1
- package/resources/internal/dictionaries/libpostal/sv/concatenated_suffixes_separable.txt +0 -1
- package/resources/internal/dictionaries/whosonfirst/locality/name:eng_x_preferred.txt +0 -81
- package/resources/internal/dictionaries/whosonfirst/locality/name:fra_x_preferred.txt +0 -2
- package/resources/internal/dictionaries/whosonfirst/region/name:eng_x_preferred.txt +0 -2
- package/resources/libpostal/dictionaries/README.md +0 -88
- package/resources/libpostal/dictionaries/af/ambiguous_expansions.txt +0 -8
- package/resources/libpostal/dictionaries/af/concatenated_suffixes_inseparable.txt +0 -1
- package/resources/libpostal/dictionaries/af/concatenated_suffixes_separable.txt +0 -14
- package/resources/libpostal/dictionaries/af/directionals.txt +0 -12
- package/resources/libpostal/dictionaries/af/personal_titles.txt +0 -23
- package/resources/libpostal/dictionaries/af/place_names.txt +0 -2
- package/resources/libpostal/dictionaries/af/qualifiers.txt +0 -4
- package/resources/libpostal/dictionaries/af/stopwords.txt +0 -38
- package/resources/libpostal/dictionaries/af/street_types.txt +0 -21
- package/resources/libpostal/dictionaries/all/ambiguous_expansions.txt +0 -1
- package/resources/libpostal/dictionaries/all/chains.txt +0 -504
- package/resources/libpostal/dictionaries/all/given_names.txt +0 -12715
- package/resources/libpostal/dictionaries/all/people.txt +0 -5
- package/resources/libpostal/dictionaries/all/surnames.txt +0 -49375
- package/resources/libpostal/dictionaries/ar/personal_titles.txt +0 -4
- package/resources/libpostal/dictionaries/ar/place_names.txt +0 -1
- package/resources/libpostal/dictionaries/ar/street_types.txt +0 -11
- package/resources/libpostal/dictionaries/ast/ambiguous_expansions.txt +0 -1
- package/resources/libpostal/dictionaries/ast/personal_titles.txt +0 -1
- package/resources/libpostal/dictionaries/ast/street_types.txt +0 -3
- package/resources/libpostal/dictionaries/az/building_types.txt +0 -1
- package/resources/libpostal/dictionaries/az/directionals.txt +0 -8
- package/resources/libpostal/dictionaries/az/personal_titles.txt +0 -3
- package/resources/libpostal/dictionaries/az/place_names.txt +0 -1
- package/resources/libpostal/dictionaries/az/street_types.txt +0 -18
- package/resources/libpostal/dictionaries/be/ambiguous_expansions.txt +0 -8
- package/resources/libpostal/dictionaries/be/building_types.txt +0 -2
- package/resources/libpostal/dictionaries/be/chains.txt +0 -8
- package/resources/libpostal/dictionaries/be/directionals.txt +0 -25
- package/resources/libpostal/dictionaries/be/house_numbers.txt +0 -2
- package/resources/libpostal/dictionaries/be/personal_titles.txt +0 -6
- package/resources/libpostal/dictionaries/be/qualifiers.txt +0 -20
- package/resources/libpostal/dictionaries/be/street_types.txt +0 -28
- package/resources/libpostal/dictionaries/be/unit_types_numbered.txt +0 -2
- package/resources/libpostal/dictionaries/bg/ambiguous_expansions.txt +0 -2
- package/resources/libpostal/dictionaries/bg/cross_streets.txt +0 -10
- package/resources/libpostal/dictionaries/bg/directionals.txt +0 -8
- package/resources/libpostal/dictionaries/bg/entrances.txt +0 -2
- package/resources/libpostal/dictionaries/bg/level_types_numbered.txt +0 -6
- package/resources/libpostal/dictionaries/bg/level_types_standalone.txt +0 -4
- package/resources/libpostal/dictionaries/bg/near.txt +0 -20
- package/resources/libpostal/dictionaries/bg/number.txt +0 -2
- package/resources/libpostal/dictionaries/bg/personal_titles.txt +0 -14
- package/resources/libpostal/dictionaries/bg/place_names.txt +0 -6
- package/resources/libpostal/dictionaries/bg/post_office.txt +0 -2
- package/resources/libpostal/dictionaries/bg/qualifiers.txt +0 -10
- package/resources/libpostal/dictionaries/bg/staircases.txt +0 -2
- package/resources/libpostal/dictionaries/bg/street_types.txt +0 -6
- package/resources/libpostal/dictionaries/bg/unit_directions.txt +0 -4
- package/resources/libpostal/dictionaries/bg/unit_types_numbered.txt +0 -6
- package/resources/libpostal/dictionaries/br/personal_titles.txt +0 -3
- package/resources/libpostal/dictionaries/br/place_names.txt +0 -3
- package/resources/libpostal/dictionaries/br/qualifiers.txt +0 -1
- package/resources/libpostal/dictionaries/br/stopwords.txt +0 -4
- package/resources/libpostal/dictionaries/br/street_types.txt +0 -40
- package/resources/libpostal/dictionaries/bs/ambiguous_expansions.txt +0 -5
- package/resources/libpostal/dictionaries/bs/building_types.txt +0 -1
- package/resources/libpostal/dictionaries/bs/cross_streets.txt +0 -6
- package/resources/libpostal/dictionaries/bs/directionals.txt +0 -4
- package/resources/libpostal/dictionaries/bs/entrances.txt +0 -1
- package/resources/libpostal/dictionaries/bs/level_types_basement.txt +0 -1
- package/resources/libpostal/dictionaries/bs/level_types_mezzanine.txt +0 -1
- package/resources/libpostal/dictionaries/bs/level_types_numbered.txt +0 -2
- package/resources/libpostal/dictionaries/bs/level_types_standalone.txt +0 -2
- package/resources/libpostal/dictionaries/bs/near.txt +0 -5
- package/resources/libpostal/dictionaries/bs/no_number.txt +0 -1
- package/resources/libpostal/dictionaries/bs/number.txt +0 -1
- package/resources/libpostal/dictionaries/bs/personal_titles.txt +0 -8
- package/resources/libpostal/dictionaries/bs/place_names.txt +0 -9
- package/resources/libpostal/dictionaries/bs/post_office.txt +0 -1
- package/resources/libpostal/dictionaries/bs/qualifiers.txt +0 -2
- package/resources/libpostal/dictionaries/bs/staircases.txt +0 -1
- package/resources/libpostal/dictionaries/bs/stopwords.txt +0 -2
- package/resources/libpostal/dictionaries/bs/street_types.txt +0 -12
- package/resources/libpostal/dictionaries/bs/unit_directions.txt +0 -2
- package/resources/libpostal/dictionaries/bs/unit_types_numbered.txt +0 -4
- package/resources/libpostal/dictionaries/ca/ambiguous_expansions.txt +0 -9
- package/resources/libpostal/dictionaries/ca/cross_streets.txt +0 -8
- package/resources/libpostal/dictionaries/ca/directionals.txt +0 -9
- package/resources/libpostal/dictionaries/ca/elisions.txt +0 -1
- package/resources/libpostal/dictionaries/ca/entrances.txt +0 -1
- package/resources/libpostal/dictionaries/ca/given_names.txt +0 -1
- package/resources/libpostal/dictionaries/ca/level_types_basement.txt +0 -1
- package/resources/libpostal/dictionaries/ca/level_types_mezzanine.txt +0 -1
- package/resources/libpostal/dictionaries/ca/level_types_numbered.txt +0 -2
- package/resources/libpostal/dictionaries/ca/level_types_standalone.txt +0 -5
- package/resources/libpostal/dictionaries/ca/level_types_sub_basement.txt +0 -1
- package/resources/libpostal/dictionaries/ca/near.txt +0 -12
- package/resources/libpostal/dictionaries/ca/no_number.txt +0 -1
- package/resources/libpostal/dictionaries/ca/number.txt +0 -1
- package/resources/libpostal/dictionaries/ca/personal_titles.txt +0 -10
- package/resources/libpostal/dictionaries/ca/place_names.txt +0 -133
- package/resources/libpostal/dictionaries/ca/post_office.txt +0 -1
- package/resources/libpostal/dictionaries/ca/postcodes.txt +0 -1
- package/resources/libpostal/dictionaries/ca/qualifiers.txt +0 -8
- package/resources/libpostal/dictionaries/ca/staircases.txt +0 -1
- package/resources/libpostal/dictionaries/ca/stopwords.txt +0 -31
- package/resources/libpostal/dictionaries/ca/street_types.txt +0 -28
- package/resources/libpostal/dictionaries/ca/synonyms.txt +0 -14
- package/resources/libpostal/dictionaries/ca/unit_directions.txt +0 -2
- package/resources/libpostal/dictionaries/ca/unit_types_numbered.txt +0 -10
- package/resources/libpostal/dictionaries/cs/ambiguous_expansions.txt +0 -6
- package/resources/libpostal/dictionaries/cs/chains.txt +0 -1
- package/resources/libpostal/dictionaries/cs/cross_streets.txt +0 -9
- package/resources/libpostal/dictionaries/cs/directionals.txt +0 -4
- package/resources/libpostal/dictionaries/cs/entrances.txt +0 -1
- package/resources/libpostal/dictionaries/cs/house_numbers.txt +0 -1
- package/resources/libpostal/dictionaries/cs/level_types_basement.txt +0 -1
- package/resources/libpostal/dictionaries/cs/level_types_numbered.txt +0 -3
- package/resources/libpostal/dictionaries/cs/level_types_standalone.txt +0 -1
- package/resources/libpostal/dictionaries/cs/near.txt +0 -12
- package/resources/libpostal/dictionaries/cs/number.txt +0 -1
- package/resources/libpostal/dictionaries/cs/personal_titles.txt +0 -2
- package/resources/libpostal/dictionaries/cs/place_names.txt +0 -47
- package/resources/libpostal/dictionaries/cs/post_office.txt +0 -1
- package/resources/libpostal/dictionaries/cs/staircases.txt +0 -1
- package/resources/libpostal/dictionaries/cs/stopwords.txt +0 -1
- package/resources/libpostal/dictionaries/cs/street_types.txt +0 -6
- package/resources/libpostal/dictionaries/cs/unit_directions.txt +0 -2
- package/resources/libpostal/dictionaries/cs/unit_types_numbered.txt +0 -3
- package/resources/libpostal/dictionaries/cy/building_types.txt +0 -5
- package/resources/libpostal/dictionaries/cy/directionals.txt +0 -4
- package/resources/libpostal/dictionaries/cy/personal_titles.txt +0 -2
- package/resources/libpostal/dictionaries/cy/place_names.txt +0 -22
- package/resources/libpostal/dictionaries/cy/qualifiers.txt +0 -2
- package/resources/libpostal/dictionaries/cy/stopwords.txt +0 -3
- package/resources/libpostal/dictionaries/cy/street_types.txt +0 -22
- package/resources/libpostal/dictionaries/da/academic_degrees.txt +0 -1
- package/resources/libpostal/dictionaries/da/ambiguous_expansions.txt +0 -7
- package/resources/libpostal/dictionaries/da/building_types.txt +0 -3
- package/resources/libpostal/dictionaries/da/concatenated_suffixes_inseparable.txt +0 -21
- package/resources/libpostal/dictionaries/da/concatenated_suffixes_separable.txt +0 -9
- package/resources/libpostal/dictionaries/da/cross_streets.txt +0 -5
- package/resources/libpostal/dictionaries/da/directionals.txt +0 -13
- package/resources/libpostal/dictionaries/da/entrances.txt +0 -1
- package/resources/libpostal/dictionaries/da/level_types_basement.txt +0 -1
- package/resources/libpostal/dictionaries/da/level_types_numbered.txt +0 -2
- package/resources/libpostal/dictionaries/da/level_types_standalone.txt +0 -2
- package/resources/libpostal/dictionaries/da/near.txt +0 -14
- package/resources/libpostal/dictionaries/da/number.txt +0 -1
- package/resources/libpostal/dictionaries/da/personal_titles.txt +0 -1
- package/resources/libpostal/dictionaries/da/place_names.txt +0 -7
- package/resources/libpostal/dictionaries/da/post_office.txt +0 -2
- package/resources/libpostal/dictionaries/da/staircases.txt +0 -2
- package/resources/libpostal/dictionaries/da/stopwords.txt +0 -1
- package/resources/libpostal/dictionaries/da/street_types.txt +0 -38
- package/resources/libpostal/dictionaries/da/synonyms.txt +0 -2
- package/resources/libpostal/dictionaries/da/unit_directions.txt +0 -3
- package/resources/libpostal/dictionaries/da/unit_types_numbered.txt +0 -2
- package/resources/libpostal/dictionaries/de/academic_degrees.txt +0 -5
- package/resources/libpostal/dictionaries/de/ambiguous_expansions.txt +0 -18
- package/resources/libpostal/dictionaries/de/chains.txt +0 -11
- package/resources/libpostal/dictionaries/de/company_types.txt +0 -8
- package/resources/libpostal/dictionaries/de/concatenated_prefixes_separable.txt +0 -17
- package/resources/libpostal/dictionaries/de/concatenated_suffixes_inseparable.txt +0 -5
- package/resources/libpostal/dictionaries/de/concatenated_suffixes_separable.txt +0 -16
- package/resources/libpostal/dictionaries/de/cross_streets.txt +0 -5
- package/resources/libpostal/dictionaries/de/directionals.txt +0 -41
- package/resources/libpostal/dictionaries/de/entrances.txt +0 -1
- package/resources/libpostal/dictionaries/de/house_numbers.txt +0 -1
- package/resources/libpostal/dictionaries/de/level_types_basement.txt +0 -1
- package/resources/libpostal/dictionaries/de/level_types_numbered.txt +0 -3
- package/resources/libpostal/dictionaries/de/level_types_standalone.txt +0 -4
- package/resources/libpostal/dictionaries/de/near.txt +0 -16
- package/resources/libpostal/dictionaries/de/number.txt +0 -1
- package/resources/libpostal/dictionaries/de/personal_suffixes.txt +0 -2
- package/resources/libpostal/dictionaries/de/personal_titles.txt +0 -18
- package/resources/libpostal/dictionaries/de/place_names.txt +0 -123
- package/resources/libpostal/dictionaries/de/post_office.txt +0 -1
- package/resources/libpostal/dictionaries/de/qualifiers.txt +0 -3
- package/resources/libpostal/dictionaries/de/staircases.txt +0 -2
- package/resources/libpostal/dictionaries/de/stopwords.txt +0 -39
- package/resources/libpostal/dictionaries/de/street_types.txt +0 -36
- package/resources/libpostal/dictionaries/de/synonyms.txt +0 -16
- package/resources/libpostal/dictionaries/de/toponyms.txt +0 -28
- package/resources/libpostal/dictionaries/de/unit_directions.txt +0 -2
- package/resources/libpostal/dictionaries/de/unit_types_numbered.txt +0 -7
- package/resources/libpostal/dictionaries/el/ambiguous_expansions.txt +0 -1
- package/resources/libpostal/dictionaries/el/building_types.txt +0 -2
- package/resources/libpostal/dictionaries/el/entrances.txt +0 -2
- package/resources/libpostal/dictionaries/el/given_names.txt +0 -6
- package/resources/libpostal/dictionaries/el/level_types_basement.txt +0 -2
- package/resources/libpostal/dictionaries/el/level_types_mezzanine.txt +0 -2
- package/resources/libpostal/dictionaries/el/level_types_numbered.txt +0 -2
- package/resources/libpostal/dictionaries/el/level_types_standalone.txt +0 -2
- package/resources/libpostal/dictionaries/el/personal_titles.txt +0 -12
- package/resources/libpostal/dictionaries/el/place_names.txt +0 -18
- package/resources/libpostal/dictionaries/el/post_office.txt +0 -2
- package/resources/libpostal/dictionaries/el/postcodes.txt +0 -2
- package/resources/libpostal/dictionaries/el/qualifiers.txt +0 -6
- package/resources/libpostal/dictionaries/el/staircases.txt +0 -2
- package/resources/libpostal/dictionaries/el/street_types.txt +0 -6
- package/resources/libpostal/dictionaries/el/synonyms.txt +0 -41
- package/resources/libpostal/dictionaries/el/toponyms.txt +0 -3
- package/resources/libpostal/dictionaries/el/unit_types_numbered.txt +0 -6
- package/resources/libpostal/dictionaries/en/academic_degrees.txt +0 -27
- package/resources/libpostal/dictionaries/en/ambiguous_expansions.txt +0 -178
- package/resources/libpostal/dictionaries/en/building_types.txt +0 -19
- package/resources/libpostal/dictionaries/en/chains.txt +0 -6
- package/resources/libpostal/dictionaries/en/company_types.txt +0 -61
- package/resources/libpostal/dictionaries/en/cross_streets.txt +0 -9
- package/resources/libpostal/dictionaries/en/directionals.txt +0 -20
- package/resources/libpostal/dictionaries/en/entrances.txt +0 -1
- package/resources/libpostal/dictionaries/en/given_names.txt +0 -2
- package/resources/libpostal/dictionaries/en/level_types_basement.txt +0 -1
- package/resources/libpostal/dictionaries/en/level_types_mezzanine.txt +0 -5
- package/resources/libpostal/dictionaries/en/level_types_numbered.txt +0 -4
- package/resources/libpostal/dictionaries/en/level_types_standalone.txt +0 -12
- package/resources/libpostal/dictionaries/en/level_types_sub_basement.txt +0 -1
- package/resources/libpostal/dictionaries/en/near.txt +0 -7
- package/resources/libpostal/dictionaries/en/no_number.txt +0 -1
- package/resources/libpostal/dictionaries/en/nulls.txt +0 -2
- package/resources/libpostal/dictionaries/en/number.txt +0 -1
- package/resources/libpostal/dictionaries/en/personal_suffixes.txt +0 -2
- package/resources/libpostal/dictionaries/en/personal_titles.txt +0 -80
- package/resources/libpostal/dictionaries/en/place_names.txt +0 -315
- package/resources/libpostal/dictionaries/en/post_office.txt +0 -16
- package/resources/libpostal/dictionaries/en/qualifiers.txt +0 -5
- package/resources/libpostal/dictionaries/en/staircases.txt +0 -3
- package/resources/libpostal/dictionaries/en/stopwords.txt +0 -14
- package/resources/libpostal/dictionaries/en/street_names.txt +0 -358
- package/resources/libpostal/dictionaries/en/street_types.txt +0 -410
- package/resources/libpostal/dictionaries/en/synonyms.txt +0 -53
- package/resources/libpostal/dictionaries/en/toponyms.txt +0 -80
- package/resources/libpostal/dictionaries/en/unit_directions.txt +0 -4
- package/resources/libpostal/dictionaries/en/unit_types_numbered.txt +0 -69
- package/resources/libpostal/dictionaries/en/unit_types_standalone.txt +0 -16
- package/resources/libpostal/dictionaries/es/academic_degrees.txt +0 -2
- package/resources/libpostal/dictionaries/es/ambiguous_expansions.txt +0 -45
- package/resources/libpostal/dictionaries/es/building_types.txt +0 -15
- package/resources/libpostal/dictionaries/es/company_types.txt +0 -49
- package/resources/libpostal/dictionaries/es/cross_streets.txt +0 -9
- package/resources/libpostal/dictionaries/es/directionals.txt +0 -13
- package/resources/libpostal/dictionaries/es/entrances.txt +0 -3
- package/resources/libpostal/dictionaries/es/given_names.txt +0 -3
- package/resources/libpostal/dictionaries/es/house_numbers.txt +0 -2
- package/resources/libpostal/dictionaries/es/level_types_basement.txt +0 -1
- package/resources/libpostal/dictionaries/es/level_types_mezzanine.txt +0 -1
- package/resources/libpostal/dictionaries/es/level_types_numbered.txt +0 -2
- package/resources/libpostal/dictionaries/es/level_types_standalone.txt +0 -7
- package/resources/libpostal/dictionaries/es/level_types_sub_basement.txt +0 -1
- package/resources/libpostal/dictionaries/es/near.txt +0 -10
- package/resources/libpostal/dictionaries/es/no_number.txt +0 -1
- package/resources/libpostal/dictionaries/es/number.txt +0 -1
- package/resources/libpostal/dictionaries/es/personal_suffixes.txt +0 -1
- package/resources/libpostal/dictionaries/es/personal_titles.txt +0 -132
- package/resources/libpostal/dictionaries/es/place_names.txt +0 -234
- package/resources/libpostal/dictionaries/es/post_office.txt +0 -4
- package/resources/libpostal/dictionaries/es/postcodes.txt +0 -1
- package/resources/libpostal/dictionaries/es/qualifiers.txt +0 -34
- package/resources/libpostal/dictionaries/es/staircases.txt +0 -2
- package/resources/libpostal/dictionaries/es/stopwords.txt +0 -29
- package/resources/libpostal/dictionaries/es/street_types.txt +0 -109
- package/resources/libpostal/dictionaries/es/surnames.txt +0 -6
- package/resources/libpostal/dictionaries/es/synonyms.txt +0 -58
- package/resources/libpostal/dictionaries/es/toponyms.txt +0 -39
- package/resources/libpostal/dictionaries/es/unit_directions.txt +0 -4
- package/resources/libpostal/dictionaries/es/unit_types_numbered.txt +0 -15
- package/resources/libpostal/dictionaries/es/unit_types_standalone.txt +0 -5
- package/resources/libpostal/dictionaries/et/ambiguous_expansions.txt +0 -5
- package/resources/libpostal/dictionaries/et/building_types.txt +0 -3
- package/resources/libpostal/dictionaries/et/company_types.txt +0 -10
- package/resources/libpostal/dictionaries/et/cross_streets.txt +0 -4
- package/resources/libpostal/dictionaries/et/directionals.txt +0 -9
- package/resources/libpostal/dictionaries/et/entrances.txt +0 -1
- package/resources/libpostal/dictionaries/et/level_types_basement.txt +0 -2
- package/resources/libpostal/dictionaries/et/level_types_numbered.txt +0 -1
- package/resources/libpostal/dictionaries/et/near.txt +0 -4
- package/resources/libpostal/dictionaries/et/number.txt +0 -1
- package/resources/libpostal/dictionaries/et/personal_titles.txt +0 -13
- package/resources/libpostal/dictionaries/et/place_names.txt +0 -39
- package/resources/libpostal/dictionaries/et/post_office.txt +0 -2
- package/resources/libpostal/dictionaries/et/qualifiers.txt +0 -6
- package/resources/libpostal/dictionaries/et/staircases.txt +0 -1
- package/resources/libpostal/dictionaries/et/stopwords.txt +0 -1
- package/resources/libpostal/dictionaries/et/street_types.txt +0 -10
- package/resources/libpostal/dictionaries/et/toponyms.txt +0 -1
- package/resources/libpostal/dictionaries/et/unit_directions.txt +0 -4
- package/resources/libpostal/dictionaries/et/unit_types_numbered.txt +0 -3
- package/resources/libpostal/dictionaries/eu/ambiguous_expansions.txt +0 -2
- package/resources/libpostal/dictionaries/eu/cross_streets.txt +0 -4
- package/resources/libpostal/dictionaries/eu/entrances.txt +0 -1
- package/resources/libpostal/dictionaries/eu/level_types_numbered.txt +0 -1
- package/resources/libpostal/dictionaries/eu/level_types_standalone.txt +0 -2
- package/resources/libpostal/dictionaries/eu/near.txt +0 -5
- package/resources/libpostal/dictionaries/eu/no_number.txt +0 -1
- package/resources/libpostal/dictionaries/eu/place_names.txt +0 -63
- package/resources/libpostal/dictionaries/eu/post_office.txt +0 -1
- package/resources/libpostal/dictionaries/eu/postcodes.txt +0 -1
- package/resources/libpostal/dictionaries/eu/qualifiers.txt +0 -2
- package/resources/libpostal/dictionaries/eu/staircases.txt +0 -1
- package/resources/libpostal/dictionaries/eu/stopwords.txt +0 -1
- package/resources/libpostal/dictionaries/eu/street_types.txt +0 -18
- package/resources/libpostal/dictionaries/eu/unit_directions.txt +0 -3
- package/resources/libpostal/dictionaries/eu/unit_types_numbered.txt +0 -2
- package/resources/libpostal/dictionaries/fa/personal_titles.txt +0 -6
- package/resources/libpostal/dictionaries/fa/place_names.txt +0 -3
- package/resources/libpostal/dictionaries/fa/street_types.txt +0 -7
- package/resources/libpostal/dictionaries/fi/ambiguous_expansions.txt +0 -5
- package/resources/libpostal/dictionaries/fi/building_types.txt +0 -3
- package/resources/libpostal/dictionaries/fi/chains.txt +0 -1
- package/resources/libpostal/dictionaries/fi/concatenated_suffixes_separable.txt +0 -20
- package/resources/libpostal/dictionaries/fi/cross_streets.txt +0 -3
- package/resources/libpostal/dictionaries/fi/directionals.txt +0 -4
- package/resources/libpostal/dictionaries/fi/entrances.txt +0 -1
- package/resources/libpostal/dictionaries/fi/level_types_numbered.txt +0 -1
- package/resources/libpostal/dictionaries/fi/near.txt +0 -5
- package/resources/libpostal/dictionaries/fi/number.txt +0 -1
- package/resources/libpostal/dictionaries/fi/post_office.txt +0 -1
- package/resources/libpostal/dictionaries/fi/qualifiers.txt +0 -2
- package/resources/libpostal/dictionaries/fi/staircases.txt +0 -1
- package/resources/libpostal/dictionaries/fi/stopwords.txt +0 -1
- package/resources/libpostal/dictionaries/fi/street_types.txt +0 -20
- package/resources/libpostal/dictionaries/fi/synonyms.txt +0 -1
- package/resources/libpostal/dictionaries/fi/unit_directions.txt +0 -4
- package/resources/libpostal/dictionaries/fi/unit_types_numbered.txt +0 -2
- package/resources/libpostal/dictionaries/fil/street_types.txt +0 -3
- package/resources/libpostal/dictionaries/fr/ambiguous_expansions.txt +0 -25
- package/resources/libpostal/dictionaries/fr/building_types.txt +0 -4
- package/resources/libpostal/dictionaries/fr/chains.txt +0 -2
- package/resources/libpostal/dictionaries/fr/company_types.txt +0 -40
- package/resources/libpostal/dictionaries/fr/cross_streets.txt +0 -5
- package/resources/libpostal/dictionaries/fr/directionals.txt +0 -12
- package/resources/libpostal/dictionaries/fr/elisions.txt +0 -9
- package/resources/libpostal/dictionaries/fr/entrances.txt +0 -2
- package/resources/libpostal/dictionaries/fr/level_types_basement.txt +0 -1
- package/resources/libpostal/dictionaries/fr/level_types_mezzanine.txt +0 -1
- package/resources/libpostal/dictionaries/fr/level_types_numbered.txt +0 -2
- package/resources/libpostal/dictionaries/fr/level_types_standalone.txt +0 -8
- package/resources/libpostal/dictionaries/fr/level_types_sub_basement.txt +0 -1
- package/resources/libpostal/dictionaries/fr/near.txt +0 -20
- package/resources/libpostal/dictionaries/fr/no_number.txt +0 -1
- package/resources/libpostal/dictionaries/fr/number.txt +0 -1
- package/resources/libpostal/dictionaries/fr/people.txt +0 -1
- package/resources/libpostal/dictionaries/fr/personal_titles.txt +0 -57
- package/resources/libpostal/dictionaries/fr/place_names.txt +0 -147
- package/resources/libpostal/dictionaries/fr/post_office.txt +0 -3
- package/resources/libpostal/dictionaries/fr/qualifiers.txt +0 -19
- package/resources/libpostal/dictionaries/fr/staircases.txt +0 -1
- package/resources/libpostal/dictionaries/fr/stopwords.txt +0 -28
- package/resources/libpostal/dictionaries/fr/street_types.txt +0 -165
- package/resources/libpostal/dictionaries/fr/synonyms.txt +0 -14
- package/resources/libpostal/dictionaries/fr/toponyms.txt +0 -13
- package/resources/libpostal/dictionaries/fr/unit_directions.txt +0 -4
- package/resources/libpostal/dictionaries/fr/unit_types_numbered.txt +0 -10
- package/resources/libpostal/dictionaries/ga/building_types.txt +0 -16
- package/resources/libpostal/dictionaries/ga/level_types_standalone.txt +0 -1
- package/resources/libpostal/dictionaries/ga/personal_titles.txt +0 -1
- package/resources/libpostal/dictionaries/ga/place_names.txt +0 -10
- package/resources/libpostal/dictionaries/ga/street_types.txt +0 -95
- package/resources/libpostal/dictionaries/ga/unit_types_numbered.txt +0 -1
- package/resources/libpostal/dictionaries/gd/building_types.txt +0 -8
- package/resources/libpostal/dictionaries/gd/directionals.txt +0 -6
- package/resources/libpostal/dictionaries/gd/place_names.txt +0 -7
- package/resources/libpostal/dictionaries/gd/qualifiers.txt +0 -1
- package/resources/libpostal/dictionaries/gd/stopwords.txt +0 -2
- package/resources/libpostal/dictionaries/gd/street_types.txt +0 -52
- package/resources/libpostal/dictionaries/gl/ambiguous_expansions.txt +0 -6
- package/resources/libpostal/dictionaries/gl/directionals.txt +0 -8
- package/resources/libpostal/dictionaries/gl/personal_titles.txt +0 -2
- package/resources/libpostal/dictionaries/gl/stopwords.txt +0 -39
- package/resources/libpostal/dictionaries/gl/street_types.txt +0 -26
- package/resources/libpostal/dictionaries/gl/unit_directions.txt +0 -2
- package/resources/libpostal/dictionaries/gsw/ambiguous_expansions.txt +0 -1
- package/resources/libpostal/dictionaries/gsw/concatenated_suffixes_separable.txt +0 -8
- package/resources/libpostal/dictionaries/gsw/street_types.txt +0 -8
- package/resources/libpostal/dictionaries/he/entrances.txt +0 -2
- package/resources/libpostal/dictionaries/he/level_types_basement.txt +0 -2
- package/resources/libpostal/dictionaries/he/level_types_numbered.txt +0 -2
- package/resources/libpostal/dictionaries/he/level_types_standalone.txt +0 -2
- package/resources/libpostal/dictionaries/he/personal_titles.txt +0 -2
- package/resources/libpostal/dictionaries/he/post_office.txt +0 -2
- package/resources/libpostal/dictionaries/he/street_types.txt +0 -8
- package/resources/libpostal/dictionaries/he/unit_types_numbered.txt +0 -2
- package/resources/libpostal/dictionaries/hi/street_types.txt +0 -3
- package/resources/libpostal/dictionaries/hr/ambiguous_expansions.txt +0 -6
- package/resources/libpostal/dictionaries/hr/building_types.txt +0 -1
- package/resources/libpostal/dictionaries/hr/cross_streets.txt +0 -6
- package/resources/libpostal/dictionaries/hr/directionals.txt +0 -4
- package/resources/libpostal/dictionaries/hr/entrances.txt +0 -1
- package/resources/libpostal/dictionaries/hr/level_types_basement.txt +0 -1
- package/resources/libpostal/dictionaries/hr/level_types_mezzanine.txt +0 -1
- package/resources/libpostal/dictionaries/hr/level_types_numbered.txt +0 -2
- package/resources/libpostal/dictionaries/hr/level_types_standalone.txt +0 -2
- package/resources/libpostal/dictionaries/hr/near.txt +0 -5
- package/resources/libpostal/dictionaries/hr/no_number.txt +0 -1
- package/resources/libpostal/dictionaries/hr/personal_titles.txt +0 -6
- package/resources/libpostal/dictionaries/hr/place_names.txt +0 -18
- package/resources/libpostal/dictionaries/hr/post_office.txt +0 -1
- package/resources/libpostal/dictionaries/hr/qualifiers.txt +0 -1
- package/resources/libpostal/dictionaries/hr/staircases.txt +0 -1
- package/resources/libpostal/dictionaries/hr/stopwords.txt +0 -1
- package/resources/libpostal/dictionaries/hr/street_types.txt +0 -12
- package/resources/libpostal/dictionaries/hr/unit_directions.txt +0 -2
- package/resources/libpostal/dictionaries/hr/unit_types_numbered.txt +0 -4
- package/resources/libpostal/dictionaries/hu/ambiguous_expansions.txt +0 -6
- package/resources/libpostal/dictionaries/hu/cross_streets.txt +0 -5
- package/resources/libpostal/dictionaries/hu/directionals.txt +0 -8
- package/resources/libpostal/dictionaries/hu/level_types_basement.txt +0 -4
- package/resources/libpostal/dictionaries/hu/level_types_mezzanine.txt +0 -2
- package/resources/libpostal/dictionaries/hu/level_types_numbered.txt +0 -1
- package/resources/libpostal/dictionaries/hu/level_types_standalone.txt +0 -1
- package/resources/libpostal/dictionaries/hu/near.txt +0 -3
- package/resources/libpostal/dictionaries/hu/number.txt +0 -1
- package/resources/libpostal/dictionaries/hu/personal_titles.txt +0 -1
- package/resources/libpostal/dictionaries/hu/post_office.txt +0 -1
- package/resources/libpostal/dictionaries/hu/stopwords.txt +0 -4
- package/resources/libpostal/dictionaries/hu/street_types.txt +0 -21
- package/resources/libpostal/dictionaries/hu/unit_directions.txt +0 -2
- package/resources/libpostal/dictionaries/hu/unit_types_numbered.txt +0 -3
- package/resources/libpostal/dictionaries/id/academic_degrees.txt +0 -78
- package/resources/libpostal/dictionaries/id/ambiguous_expansions.txt +0 -64
- package/resources/libpostal/dictionaries/id/building_types.txt +0 -7
- package/resources/libpostal/dictionaries/id/chains.txt +0 -5
- package/resources/libpostal/dictionaries/id/company_types.txt +0 -15
- package/resources/libpostal/dictionaries/id/cross_streets.txt +0 -6
- package/resources/libpostal/dictionaries/id/directionals.txt +0 -9
- package/resources/libpostal/dictionaries/id/entrances.txt +0 -3
- package/resources/libpostal/dictionaries/id/level_types_numbered.txt +0 -1
- package/resources/libpostal/dictionaries/id/level_types_standalone.txt +0 -3
- package/resources/libpostal/dictionaries/id/near.txt +0 -3
- package/resources/libpostal/dictionaries/id/number.txt +0 -1
- package/resources/libpostal/dictionaries/id/personal_titles.txt +0 -34
- package/resources/libpostal/dictionaries/id/place_names.txt +0 -145
- package/resources/libpostal/dictionaries/id/qualifiers.txt +0 -13
- package/resources/libpostal/dictionaries/id/stopwords.txt +0 -9
- package/resources/libpostal/dictionaries/id/street_types.txt +0 -7
- package/resources/libpostal/dictionaries/id/synonyms.txt +0 -22
- package/resources/libpostal/dictionaries/id/toponyms.txt +0 -34
- package/resources/libpostal/dictionaries/id/unit_directions.txt +0 -4
- package/resources/libpostal/dictionaries/id/unit_types_numbered.txt +0 -16
- package/resources/libpostal/dictionaries/id/unit_types_standalone.txt +0 -9
- package/resources/libpostal/dictionaries/is/ambiguous_expansions.txt +0 -6
- package/resources/libpostal/dictionaries/is/concatenated_suffixes_inseparable.txt +0 -29
- package/resources/libpostal/dictionaries/is/cross_streets.txt +0 -4
- package/resources/libpostal/dictionaries/is/directionals.txt +0 -4
- package/resources/libpostal/dictionaries/is/entrances.txt +0 -1
- package/resources/libpostal/dictionaries/is/level_types_basement.txt +0 -1
- package/resources/libpostal/dictionaries/is/level_types_numbered.txt +0 -1
- package/resources/libpostal/dictionaries/is/level_types_standalone.txt +0 -1
- package/resources/libpostal/dictionaries/is/near.txt +0 -6
- package/resources/libpostal/dictionaries/is/number.txt +0 -1
- package/resources/libpostal/dictionaries/is/post_office.txt +0 -1
- package/resources/libpostal/dictionaries/is/qualifiers.txt +0 -2
- package/resources/libpostal/dictionaries/is/staircases.txt +0 -1
- package/resources/libpostal/dictionaries/is/stopwords.txt +0 -1
- package/resources/libpostal/dictionaries/is/street_types.txt +0 -29
- package/resources/libpostal/dictionaries/is/unit_directions.txt +0 -2
- package/resources/libpostal/dictionaries/is/unit_types_numbered.txt +0 -1
- package/resources/libpostal/dictionaries/it/academic_degrees.txt +0 -1
- package/resources/libpostal/dictionaries/it/ambiguous_expansions.txt +0 -8
- package/resources/libpostal/dictionaries/it/building_types.txt +0 -5
- package/resources/libpostal/dictionaries/it/chains.txt +0 -5
- package/resources/libpostal/dictionaries/it/company_types.txt +0 -16
- package/resources/libpostal/dictionaries/it/cross_streets.txt +0 -7
- package/resources/libpostal/dictionaries/it/directionals.txt +0 -11
- package/resources/libpostal/dictionaries/it/elisions.txt +0 -4
- package/resources/libpostal/dictionaries/it/entrances.txt +0 -1
- package/resources/libpostal/dictionaries/it/level_types_basement.txt +0 -2
- package/resources/libpostal/dictionaries/it/level_types_numbered.txt +0 -2
- package/resources/libpostal/dictionaries/it/level_types_standalone.txt +0 -2
- package/resources/libpostal/dictionaries/it/near.txt +0 -10
- package/resources/libpostal/dictionaries/it/no_number.txt +0 -2
- package/resources/libpostal/dictionaries/it/number.txt +0 -1
- package/resources/libpostal/dictionaries/it/personal_titles.txt +0 -72
- package/resources/libpostal/dictionaries/it/place_names.txt +0 -203
- package/resources/libpostal/dictionaries/it/post_office.txt +0 -2
- package/resources/libpostal/dictionaries/it/qualifiers.txt +0 -16
- package/resources/libpostal/dictionaries/it/staircases.txt +0 -1
- package/resources/libpostal/dictionaries/it/stopwords.txt +0 -47
- package/resources/libpostal/dictionaries/it/street_types.txt +0 -151
- package/resources/libpostal/dictionaries/it/synonyms.txt +0 -115
- package/resources/libpostal/dictionaries/it/toponyms.txt +0 -110
- package/resources/libpostal/dictionaries/it/unit_types_numbered.txt +0 -9
- package/resources/libpostal/dictionaries/ja/ambiguous_expansions.txt +0 -5
- package/resources/libpostal/dictionaries/ja/building_types.txt +0 -6
- package/resources/libpostal/dictionaries/ja/chains.txt +0 -27
- package/resources/libpostal/dictionaries/ja/directionals.txt +0 -16
- package/resources/libpostal/dictionaries/ja/level_types_numbered.txt +0 -3
- package/resources/libpostal/dictionaries/ja/number.txt +0 -2
- package/resources/libpostal/dictionaries/ja/place_names.txt +0 -16
- package/resources/libpostal/dictionaries/ja/post_office.txt +0 -2
- package/resources/libpostal/dictionaries/ja/postcodes.txt +0 -2
- package/resources/libpostal/dictionaries/ja/qualifiers.txt +0 -38
- package/resources/libpostal/dictionaries/ja/street_types.txt +0 -67
- package/resources/libpostal/dictionaries/ka/ambiguous_expansions.txt +0 -2
- package/resources/libpostal/dictionaries/ka/personal_titles.txt +0 -4
- package/resources/libpostal/dictionaries/ka/place_names.txt +0 -7
- package/resources/libpostal/dictionaries/ka/stopwords.txt +0 -1
- package/resources/libpostal/dictionaries/ka/street_types.txt +0 -12
- package/resources/libpostal/dictionaries/ko/directionals.txt +0 -31
- package/resources/libpostal/dictionaries/ko/level_types_numbered.txt +0 -2
- package/resources/libpostal/dictionaries/ko/number.txt +0 -3
- package/resources/libpostal/dictionaries/ko/post_office.txt +0 -2
- package/resources/libpostal/dictionaries/ko/postcodes.txt +0 -2
- package/resources/libpostal/dictionaries/ko/qualifiers.txt +0 -6
- package/resources/libpostal/dictionaries/ko/street_types.txt +0 -8
- package/resources/libpostal/dictionaries/lb/concatenated_suffixes_separable.txt +0 -3
- package/resources/libpostal/dictionaries/lb/street_types.txt +0 -3
- package/resources/libpostal/dictionaries/lt/ambiguous_expansions.txt +0 -6
- package/resources/libpostal/dictionaries/lt/building_types.txt +0 -1
- package/resources/libpostal/dictionaries/lt/cross_streets.txt +0 -4
- package/resources/libpostal/dictionaries/lt/directionals.txt +0 -4
- package/resources/libpostal/dictionaries/lt/entrances.txt +0 -1
- package/resources/libpostal/dictionaries/lt/level_types_basement.txt +0 -2
- package/resources/libpostal/dictionaries/lt/level_types_numbered.txt +0 -2
- package/resources/libpostal/dictionaries/lt/level_types_standalone.txt +0 -1
- package/resources/libpostal/dictionaries/lt/number.txt +0 -1
- package/resources/libpostal/dictionaries/lt/post_office.txt +0 -1
- package/resources/libpostal/dictionaries/lt/qualifiers.txt +0 -5
- package/resources/libpostal/dictionaries/lt/staircases.txt +0 -1
- package/resources/libpostal/dictionaries/lt/stopwords.txt +0 -1
- package/resources/libpostal/dictionaries/lt/street_types.txt +0 -7
- package/resources/libpostal/dictionaries/lt/unit_directions.txt +0 -2
- package/resources/libpostal/dictionaries/lt/unit_types_numbered.txt +0 -3
- package/resources/libpostal/dictionaries/lv/ambiguous_expansions.txt +0 -6
- package/resources/libpostal/dictionaries/lv/cross_streets.txt +0 -5
- package/resources/libpostal/dictionaries/lv/directionals.txt +0 -4
- package/resources/libpostal/dictionaries/lv/entrances.txt +0 -1
- package/resources/libpostal/dictionaries/lv/level_types_basement.txt +0 -2
- package/resources/libpostal/dictionaries/lv/level_types_numbered.txt +0 -1
- package/resources/libpostal/dictionaries/lv/level_types_standalone.txt +0 -1
- package/resources/libpostal/dictionaries/lv/number.txt +0 -1
- package/resources/libpostal/dictionaries/lv/place_names.txt +0 -2
- package/resources/libpostal/dictionaries/lv/staircases.txt +0 -2
- package/resources/libpostal/dictionaries/lv/stopwords.txt +0 -1
- package/resources/libpostal/dictionaries/lv/street_types.txt +0 -5
- package/resources/libpostal/dictionaries/lv/unit_directions.txt +0 -2
- package/resources/libpostal/dictionaries/lv/unit_types_numbered.txt +0 -3
- package/resources/libpostal/dictionaries/ms/ambiguous_expansions.txt +0 -1
- package/resources/libpostal/dictionaries/ms/building_types.txt +0 -10
- package/resources/libpostal/dictionaries/ms/company_types.txt +0 -8
- package/resources/libpostal/dictionaries/ms/directionals.txt +0 -9
- package/resources/libpostal/dictionaries/ms/given_names.txt +0 -3
- package/resources/libpostal/dictionaries/ms/level_types_numbered.txt +0 -2
- package/resources/libpostal/dictionaries/ms/personal_titles.txt +0 -92
- package/resources/libpostal/dictionaries/ms/place_names.txt +0 -145
- package/resources/libpostal/dictionaries/ms/post_office.txt +0 -3
- package/resources/libpostal/dictionaries/ms/qualifiers.txt +0 -6
- package/resources/libpostal/dictionaries/ms/stopwords.txt +0 -1
- package/resources/libpostal/dictionaries/ms/street_types.txt +0 -35
- package/resources/libpostal/dictionaries/ms/synonyms.txt +0 -27
- package/resources/libpostal/dictionaries/mt/ambiguous_expansions.txt +0 -1
- package/resources/libpostal/dictionaries/mt/number.txt +0 -1
- package/resources/libpostal/dictionaries/mt/personal_titles.txt +0 -6
- package/resources/libpostal/dictionaries/mt/place_names.txt +0 -1
- package/resources/libpostal/dictionaries/mt/stopwords.txt +0 -5
- package/resources/libpostal/dictionaries/mt/street_types.txt +0 -6
- package/resources/libpostal/dictionaries/nb/ambiguous_expansions.txt +0 -11
- package/resources/libpostal/dictionaries/nb/building_types.txt +0 -3
- package/resources/libpostal/dictionaries/nb/concatenated_suffixes_inseparable.txt +0 -13
- package/resources/libpostal/dictionaries/nb/concatenated_suffixes_separable.txt +0 -6
- package/resources/libpostal/dictionaries/nb/cross_streets.txt +0 -5
- package/resources/libpostal/dictionaries/nb/directionals.txt +0 -13
- package/resources/libpostal/dictionaries/nb/entrances.txt +0 -1
- package/resources/libpostal/dictionaries/nb/level_types_numbered.txt +0 -5
- package/resources/libpostal/dictionaries/nb/near.txt +0 -7
- package/resources/libpostal/dictionaries/nb/number.txt +0 -1
- package/resources/libpostal/dictionaries/nb/personal_titles.txt +0 -1
- package/resources/libpostal/dictionaries/nb/post_office.txt +0 -1
- package/resources/libpostal/dictionaries/nb/staircases.txt +0 -2
- package/resources/libpostal/dictionaries/nb/stopwords.txt +0 -34
- package/resources/libpostal/dictionaries/nb/street_types.txt +0 -20
- package/resources/libpostal/dictionaries/nb/unit_directions.txt +0 -2
- package/resources/libpostal/dictionaries/nb/unit_types_numbered.txt +0 -1
- package/resources/libpostal/dictionaries/nl/ambiguous_expansions.txt +0 -10
- package/resources/libpostal/dictionaries/nl/building_types.txt +0 -1
- package/resources/libpostal/dictionaries/nl/chains.txt +0 -1
- package/resources/libpostal/dictionaries/nl/concatenated_suffixes_inseparable.txt +0 -3
- package/resources/libpostal/dictionaries/nl/concatenated_suffixes_separable.txt +0 -13
- package/resources/libpostal/dictionaries/nl/cross_streets.txt +0 -4
- package/resources/libpostal/dictionaries/nl/directionals.txt +0 -20
- package/resources/libpostal/dictionaries/nl/entrances.txt +0 -1
- package/resources/libpostal/dictionaries/nl/level_types_numbered.txt +0 -2
- package/resources/libpostal/dictionaries/nl/level_types_standalone.txt +0 -5
- package/resources/libpostal/dictionaries/nl/near.txt +0 -7
- package/resources/libpostal/dictionaries/nl/number.txt +0 -1
- package/resources/libpostal/dictionaries/nl/personal_titles.txt +0 -32
- package/resources/libpostal/dictionaries/nl/place_names.txt +0 -81
- package/resources/libpostal/dictionaries/nl/post_office.txt +0 -1
- package/resources/libpostal/dictionaries/nl/qualifiers.txt +0 -4
- package/resources/libpostal/dictionaries/nl/staircases.txt +0 -2
- package/resources/libpostal/dictionaries/nl/stopwords.txt +0 -38
- package/resources/libpostal/dictionaries/nl/street_types.txt +0 -22
- package/resources/libpostal/dictionaries/nl/synonyms.txt +0 -2
- package/resources/libpostal/dictionaries/nl/unit_directions.txt +0 -2
- package/resources/libpostal/dictionaries/nl/unit_types_numbered.txt +0 -3
- package/resources/libpostal/dictionaries/oc/elisions.txt +0 -1
- package/resources/libpostal/dictionaries/oc/stopwords.txt +0 -14
- package/resources/libpostal/dictionaries/oc/street_types.txt +0 -5
- package/resources/libpostal/dictionaries/pap/personal_titles.txt +0 -2
- package/resources/libpostal/dictionaries/pap/street_types.txt +0 -2
- package/resources/libpostal/dictionaries/pl/academic_degrees.txt +0 -2
- package/resources/libpostal/dictionaries/pl/ambiguous_expansions.txt +0 -9
- package/resources/libpostal/dictionaries/pl/building_types.txt +0 -1
- package/resources/libpostal/dictionaries/pl/chains.txt +0 -3
- package/resources/libpostal/dictionaries/pl/company_types.txt +0 -4
- package/resources/libpostal/dictionaries/pl/cross_streets.txt +0 -6
- package/resources/libpostal/dictionaries/pl/directionals.txt +0 -8
- package/resources/libpostal/dictionaries/pl/entrances.txt +0 -1
- package/resources/libpostal/dictionaries/pl/house_numbers.txt +0 -1
- package/resources/libpostal/dictionaries/pl/level_types_basement.txt +0 -1
- package/resources/libpostal/dictionaries/pl/level_types_numbered.txt +0 -1
- package/resources/libpostal/dictionaries/pl/level_types_standalone.txt +0 -1
- package/resources/libpostal/dictionaries/pl/near.txt +0 -11
- package/resources/libpostal/dictionaries/pl/number.txt +0 -1
- package/resources/libpostal/dictionaries/pl/personal_suffixes.txt +0 -2
- package/resources/libpostal/dictionaries/pl/personal_titles.txt +0 -54
- package/resources/libpostal/dictionaries/pl/place_names.txt +0 -31
- package/resources/libpostal/dictionaries/pl/post_office.txt +0 -1
- package/resources/libpostal/dictionaries/pl/qualifiers.txt +0 -9
- package/resources/libpostal/dictionaries/pl/staircases.txt +0 -1
- package/resources/libpostal/dictionaries/pl/stopwords.txt +0 -3
- package/resources/libpostal/dictionaries/pl/street_types.txt +0 -12
- package/resources/libpostal/dictionaries/pl/synonyms.txt +0 -19
- package/resources/libpostal/dictionaries/pl/toponyms.txt +0 -1
- package/resources/libpostal/dictionaries/pl/unit_directions.txt +0 -2
- package/resources/libpostal/dictionaries/pl/unit_types_numbered.txt +0 -2
- package/resources/libpostal/dictionaries/pt/ambiguous_expansions.txt +0 -12
- package/resources/libpostal/dictionaries/pt/building_types.txt +0 -7
- package/resources/libpostal/dictionaries/pt/company_types.txt +0 -31
- package/resources/libpostal/dictionaries/pt/cross_streets.txt +0 -8
- package/resources/libpostal/dictionaries/pt/directionals.txt +0 -8
- package/resources/libpostal/dictionaries/pt/elisions.txt +0 -1
- package/resources/libpostal/dictionaries/pt/entrances.txt +0 -1
- package/resources/libpostal/dictionaries/pt/level_types_basement.txt +0 -1
- package/resources/libpostal/dictionaries/pt/level_types_mezzanine.txt +0 -1
- package/resources/libpostal/dictionaries/pt/level_types_numbered.txt +0 -3
- package/resources/libpostal/dictionaries/pt/level_types_standalone.txt +0 -5
- package/resources/libpostal/dictionaries/pt/level_types_sub_basement.txt +0 -1
- package/resources/libpostal/dictionaries/pt/near.txt +0 -13
- package/resources/libpostal/dictionaries/pt/no_number.txt +0 -1
- package/resources/libpostal/dictionaries/pt/number.txt +0 -1
- package/resources/libpostal/dictionaries/pt/personal_suffixes.txt +0 -3
- package/resources/libpostal/dictionaries/pt/personal_titles.txt +0 -101
- package/resources/libpostal/dictionaries/pt/place_names.txt +0 -52
- package/resources/libpostal/dictionaries/pt/post_office.txt +0 -2
- package/resources/libpostal/dictionaries/pt/postcodes.txt +0 -2
- package/resources/libpostal/dictionaries/pt/qualifiers.txt +0 -8
- package/resources/libpostal/dictionaries/pt/staircases.txt +0 -1
- package/resources/libpostal/dictionaries/pt/stopwords.txt +0 -35
- package/resources/libpostal/dictionaries/pt/street_types.txt +0 -53
- package/resources/libpostal/dictionaries/pt/synonyms.txt +0 -21
- package/resources/libpostal/dictionaries/pt/toponyms.txt +0 -28
- package/resources/libpostal/dictionaries/pt/unit_directions.txt +0 -4
- package/resources/libpostal/dictionaries/pt/unit_types_numbered.txt +0 -10
- package/resources/libpostal/dictionaries/pt/unit_types_standalone.txt +0 -1
- package/resources/libpostal/dictionaries/ro/ambiguous_expansions.txt +0 -5
- package/resources/libpostal/dictionaries/ro/cross_streets.txt +0 -5
- package/resources/libpostal/dictionaries/ro/directionals.txt +0 -4
- package/resources/libpostal/dictionaries/ro/entrances.txt +0 -1
- package/resources/libpostal/dictionaries/ro/level_types_numbered.txt +0 -1
- package/resources/libpostal/dictionaries/ro/level_types_standalone.txt +0 -1
- package/resources/libpostal/dictionaries/ro/near.txt +0 -7
- package/resources/libpostal/dictionaries/ro/no_number.txt +0 -1
- package/resources/libpostal/dictionaries/ro/number.txt +0 -1
- package/resources/libpostal/dictionaries/ro/personal_titles.txt +0 -14
- package/resources/libpostal/dictionaries/ro/post_office.txt +0 -1
- package/resources/libpostal/dictionaries/ro/qualifiers.txt +0 -1
- package/resources/libpostal/dictionaries/ro/staircases.txt +0 -1
- package/resources/libpostal/dictionaries/ro/stopwords.txt +0 -2
- package/resources/libpostal/dictionaries/ro/street_types.txt +0 -13
- package/resources/libpostal/dictionaries/ro/unit_types_numbered.txt +0 -4
- package/resources/libpostal/dictionaries/ru/ambiguous_expansions.txt +0 -18
- package/resources/libpostal/dictionaries/ru/building_types.txt +0 -2
- package/resources/libpostal/dictionaries/ru/chains.txt +0 -42
- package/resources/libpostal/dictionaries/ru/company_types.txt +0 -9
- package/resources/libpostal/dictionaries/ru/cross_streets.txt +0 -11
- package/resources/libpostal/dictionaries/ru/directionals.txt +0 -16
- package/resources/libpostal/dictionaries/ru/entrances.txt +0 -2
- package/resources/libpostal/dictionaries/ru/house_numbers.txt +0 -2
- package/resources/libpostal/dictionaries/ru/level_types_basement.txt +0 -4
- package/resources/libpostal/dictionaries/ru/level_types_numbered.txt +0 -4
- package/resources/libpostal/dictionaries/ru/level_types_standalone.txt +0 -4
- package/resources/libpostal/dictionaries/ru/near.txt +0 -26
- package/resources/libpostal/dictionaries/ru/no_number.txt +0 -1
- package/resources/libpostal/dictionaries/ru/number.txt +0 -2
- package/resources/libpostal/dictionaries/ru/personal_titles.txt +0 -6
- package/resources/libpostal/dictionaries/ru/place_names.txt +0 -160
- package/resources/libpostal/dictionaries/ru/post_office.txt +0 -2
- package/resources/libpostal/dictionaries/ru/qualifiers.txt +0 -31
- package/resources/libpostal/dictionaries/ru/staircases.txt +0 -2
- package/resources/libpostal/dictionaries/ru/stopwords.txt +0 -1
- package/resources/libpostal/dictionaries/ru/street_types.txt +0 -28
- package/resources/libpostal/dictionaries/ru/unit_directions.txt +0 -4
- package/resources/libpostal/dictionaries/ru/unit_types_numbered.txt +0 -10
- package/resources/libpostal/dictionaries/si/place_names.txt +0 -8
- package/resources/libpostal/dictionaries/si/qualifiers.txt +0 -4
- package/resources/libpostal/dictionaries/si/street_types.txt +0 -2
- package/resources/libpostal/dictionaries/sk/ambiguous_expansions.txt +0 -6
- package/resources/libpostal/dictionaries/sk/cross_streets.txt +0 -8
- package/resources/libpostal/dictionaries/sk/directionals.txt +0 -21
- package/resources/libpostal/dictionaries/sk/entrances.txt +0 -1
- package/resources/libpostal/dictionaries/sk/house_numbers.txt +0 -1
- package/resources/libpostal/dictionaries/sk/level_types_basement.txt +0 -1
- package/resources/libpostal/dictionaries/sk/level_types_numbered.txt +0 -4
- package/resources/libpostal/dictionaries/sk/level_types_standalone.txt +0 -1
- package/resources/libpostal/dictionaries/sk/near.txt +0 -13
- package/resources/libpostal/dictionaries/sk/number.txt +0 -1
- package/resources/libpostal/dictionaries/sk/personal_titles.txt +0 -16
- package/resources/libpostal/dictionaries/sk/place_names.txt +0 -28
- package/resources/libpostal/dictionaries/sk/post_office.txt +0 -1
- package/resources/libpostal/dictionaries/sk/qualifiers.txt +0 -3
- package/resources/libpostal/dictionaries/sk/staircases.txt +0 -1
- package/resources/libpostal/dictionaries/sk/stopwords.txt +0 -29
- package/resources/libpostal/dictionaries/sk/street_types.txt +0 -20
- package/resources/libpostal/dictionaries/sk/toponyms.txt +0 -1
- package/resources/libpostal/dictionaries/sk/unit_directions.txt +0 -2
- package/resources/libpostal/dictionaries/sk/unit_types_numbered.txt +0 -3
- package/resources/libpostal/dictionaries/sl/ambiguous_expansions.txt +0 -6
- package/resources/libpostal/dictionaries/sl/chains.txt +0 -1
- package/resources/libpostal/dictionaries/sl/cross_streets.txt +0 -5
- package/resources/libpostal/dictionaries/sl/directionals.txt +0 -4
- package/resources/libpostal/dictionaries/sl/entrances.txt +0 -1
- package/resources/libpostal/dictionaries/sl/level_types_basement.txt +0 -1
- package/resources/libpostal/dictionaries/sl/level_types_numbered.txt +0 -1
- package/resources/libpostal/dictionaries/sl/level_types_standalone.txt +0 -2
- package/resources/libpostal/dictionaries/sl/near.txt +0 -7
- package/resources/libpostal/dictionaries/sl/no_number.txt +0 -1
- package/resources/libpostal/dictionaries/sl/number.txt +0 -1
- package/resources/libpostal/dictionaries/sl/personal_titles.txt +0 -3
- package/resources/libpostal/dictionaries/sl/place_names.txt +0 -1
- package/resources/libpostal/dictionaries/sl/post_office.txt +0 -1
- package/resources/libpostal/dictionaries/sl/staircases.txt +0 -1
- package/resources/libpostal/dictionaries/sl/stopwords.txt +0 -7
- package/resources/libpostal/dictionaries/sl/street_types.txt +0 -4
- package/resources/libpostal/dictionaries/sl/synonyms.txt +0 -13
- package/resources/libpostal/dictionaries/sl/unit_directions.txt +0 -2
- package/resources/libpostal/dictionaries/sl/unit_types_numbered.txt +0 -3
- package/resources/libpostal/dictionaries/sr/ambiguous_expansions.txt +0 -9
- package/resources/libpostal/dictionaries/sr/cross_streets.txt +0 -10
- package/resources/libpostal/dictionaries/sr/directionals.txt +0 -8
- package/resources/libpostal/dictionaries/sr/entrances.txt +0 -2
- package/resources/libpostal/dictionaries/sr/level_types_basement.txt +0 -2
- package/resources/libpostal/dictionaries/sr/level_types_numbered.txt +0 -6
- package/resources/libpostal/dictionaries/sr/level_types_standalone.txt +0 -4
- package/resources/libpostal/dictionaries/sr/number.txt +0 -2
- package/resources/libpostal/dictionaries/sr/personal_titles.txt +0 -14
- package/resources/libpostal/dictionaries/sr/place_names.txt +0 -12
- package/resources/libpostal/dictionaries/sr/post_office.txt +0 -6
- package/resources/libpostal/dictionaries/sr/staircases.txt +0 -2
- package/resources/libpostal/dictionaries/sr/stopwords.txt +0 -2
- package/resources/libpostal/dictionaries/sr/street_types.txt +0 -17
- package/resources/libpostal/dictionaries/sr/unit_directions.txt +0 -4
- package/resources/libpostal/dictionaries/sr/unit_types_numbered.txt +0 -8
- package/resources/libpostal/dictionaries/sv/ambiguous_expansions.txt +0 -9
- package/resources/libpostal/dictionaries/sv/company_types.txt +0 -4
- package/resources/libpostal/dictionaries/sv/concatenated_suffixes_inseparable.txt +0 -5
- package/resources/libpostal/dictionaries/sv/concatenated_suffixes_separable.txt +0 -8
- package/resources/libpostal/dictionaries/sv/cross_streets.txt +0 -5
- package/resources/libpostal/dictionaries/sv/directionals.txt +0 -8
- package/resources/libpostal/dictionaries/sv/entrances.txt +0 -2
- package/resources/libpostal/dictionaries/sv/level_types_numbered.txt +0 -7
- package/resources/libpostal/dictionaries/sv/level_types_standalone.txt +0 -5
- package/resources/libpostal/dictionaries/sv/near.txt +0 -11
- package/resources/libpostal/dictionaries/sv/number.txt +0 -1
- package/resources/libpostal/dictionaries/sv/personal_titles.txt +0 -3
- package/resources/libpostal/dictionaries/sv/post_office.txt +0 -2
- package/resources/libpostal/dictionaries/sv/staircases.txt +0 -3
- package/resources/libpostal/dictionaries/sv/stopwords.txt +0 -25
- package/resources/libpostal/dictionaries/sv/street_types.txt +0 -13
- package/resources/libpostal/dictionaries/sv/synonyms.txt +0 -4
- package/resources/libpostal/dictionaries/sv/unit_directions.txt +0 -4
- package/resources/libpostal/dictionaries/sv/unit_types_numbered.txt +0 -5
- package/resources/libpostal/dictionaries/th/chains.txt +0 -2
- package/resources/libpostal/dictionaries/th/street_types.txt +0 -10
- package/resources/libpostal/dictionaries/tr/ambiguous_expansions.txt +0 -5
- package/resources/libpostal/dictionaries/tr/chains.txt +0 -1
- package/resources/libpostal/dictionaries/tr/cross_streets.txt +0 -4
- package/resources/libpostal/dictionaries/tr/directionals.txt +0 -4
- package/resources/libpostal/dictionaries/tr/entrances.txt +0 -1
- package/resources/libpostal/dictionaries/tr/level_types_basement.txt +0 -1
- package/resources/libpostal/dictionaries/tr/level_types_mezzanine.txt +0 -1
- package/resources/libpostal/dictionaries/tr/level_types_numbered.txt +0 -1
- package/resources/libpostal/dictionaries/tr/level_types_standalone.txt +0 -1
- package/resources/libpostal/dictionaries/tr/number.txt +0 -2
- package/resources/libpostal/dictionaries/tr/personal_titles.txt +0 -4
- package/resources/libpostal/dictionaries/tr/place_names.txt +0 -2
- package/resources/libpostal/dictionaries/tr/post_office.txt +0 -1
- package/resources/libpostal/dictionaries/tr/qualifiers.txt +0 -5
- package/resources/libpostal/dictionaries/tr/staircases.txt +0 -1
- package/resources/libpostal/dictionaries/tr/stopwords.txt +0 -1
- package/resources/libpostal/dictionaries/tr/street_types.txt +0 -10
- package/resources/libpostal/dictionaries/tr/unit_directions.txt +0 -2
- package/resources/libpostal/dictionaries/tr/unit_types_numbered.txt +0 -4
- package/resources/libpostal/dictionaries/uk/ambiguous_expansions.txt +0 -8
- package/resources/libpostal/dictionaries/uk/chains.txt +0 -7
- package/resources/libpostal/dictionaries/uk/cross_streets.txt +0 -10
- package/resources/libpostal/dictionaries/uk/directionals.txt +0 -8
- package/resources/libpostal/dictionaries/uk/entrances.txt +0 -2
- package/resources/libpostal/dictionaries/uk/house_numbers.txt +0 -4
- package/resources/libpostal/dictionaries/uk/level_types_basement.txt +0 -4
- package/resources/libpostal/dictionaries/uk/level_types_numbered.txt +0 -4
- package/resources/libpostal/dictionaries/uk/level_types_standalone.txt +0 -4
- package/resources/libpostal/dictionaries/uk/near.txt +0 -24
- package/resources/libpostal/dictionaries/uk/number.txt +0 -2
- package/resources/libpostal/dictionaries/uk/personal_titles.txt +0 -9
- package/resources/libpostal/dictionaries/uk/place_names.txt +0 -161
- package/resources/libpostal/dictionaries/uk/post_office.txt +0 -2
- package/resources/libpostal/dictionaries/uk/qualifiers.txt +0 -8
- package/resources/libpostal/dictionaries/uk/staircases.txt +0 -2
- package/resources/libpostal/dictionaries/uk/stopwords.txt +0 -2
- package/resources/libpostal/dictionaries/uk/street_types.txt +0 -26
- package/resources/libpostal/dictionaries/uk/unit_directions.txt +0 -4
- package/resources/libpostal/dictionaries/uk/unit_types_numbered.txt +0 -10
- package/resources/libpostal/dictionaries/ur/street_types.txt +0 -7
- package/resources/libpostal/dictionaries/vi/ambiguous_expansions.txt +0 -3
- package/resources/libpostal/dictionaries/vi/personal_titles.txt +0 -1
- package/resources/libpostal/dictionaries/vi/place_names.txt +0 -29
- package/resources/libpostal/dictionaries/vi/qualifiers.txt +0 -5
- package/resources/libpostal/dictionaries/vi/street_types.txt +0 -10
- package/resources/libpostal/dictionaries/zh/building_types.txt +0 -2
- package/resources/libpostal/dictionaries/zh/chains.txt +0 -2
- package/resources/libpostal/dictionaries/zh/directionals.txt +0 -20
- package/resources/libpostal/dictionaries/zh/level_types_numbered.txt +0 -5
- package/resources/libpostal/dictionaries/zh/number.txt +0 -3
- package/resources/libpostal/dictionaries/zh/place_names.txt +0 -2
- package/resources/libpostal/dictionaries/zh/post_office.txt +0 -3
- package/resources/libpostal/dictionaries/zh/postcodes.txt +0 -3
- package/resources/libpostal/dictionaries/zh/qualifiers.txt +0 -19
- package/resources/libpostal/dictionaries/zh/stopwords.txt +0 -2
- package/resources/libpostal/dictionaries/zh/street_types.txt +0 -30
- package/resources/libpostal/dictionaries/zh/unit_types_numbered.txt +0 -2
- package/resources/libpostal/resources-download.sh +0 -44
- package/resources/whosonfirst/dictionaries/country/name:eng_x_preferred.txt +0 -220
- package/resources/whosonfirst/dictionaries/country/wof:country.txt +0 -215
- package/resources/whosonfirst/dictionaries/country/wof:country_alpha3.txt +0 -216
- package/resources/whosonfirst/dictionaries/dependency/name:eng_x_preferred.txt +0 -42
- package/resources/whosonfirst/dictionaries/dependency/wof:shortcode.txt +0 -34
- package/resources/whosonfirst/dictionaries/locality/name:eng_x_preferred.txt +0 -261365
- package/resources/whosonfirst/dictionaries/locality/name:fra_x_preferred.txt +0 -77631
- package/resources/whosonfirst/dictionaries/region/abrv:eng_x_preferred.txt +0 -441
- package/resources/whosonfirst/dictionaries/region/name:eng_x_preferred.txt +0 -4517
- package/resources/whosonfirst/dictionaries/region/wof:shortcode.txt +0 -839
package/out/cli.js
CHANGED
|
File without changes
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @copyright Sister Software
|
|
3
|
+
* @license AGPL-3.0
|
|
4
|
+
* @author Teffen Ellis, et al.
|
|
5
|
+
*
|
|
6
|
+
* `mailwoman corpus build --version 0.1.0 --output /data/corpus/versioned/ --inputs '{ "wof-admin":
|
|
7
|
+
* "/data/wof/admin.db", "wof-postalcode": "/data/wof/post.db" }'`
|
|
8
|
+
*
|
|
9
|
+
* End-to-end corpus build. Drives every registered adapter (or the filtered subset) per `--inputs`,
|
|
10
|
+
* runs synthesis + alignment, computes the locality-holdout split, and writes the final JSONL
|
|
11
|
+
* shards + per-stage manifests under `<output>/corpus-v<version>/`.
|
|
12
|
+
*
|
|
13
|
+
* Adapters whose id is missing from `--inputs` are skipped (and noted in the manifest); this is how
|
|
14
|
+
* the CLI handles partial builds during development.
|
|
15
|
+
*/
|
|
16
|
+
import zod from "zod";
|
|
17
|
+
import type { CommandComponent } from "../../sdk/cli.js";
|
|
18
|
+
declare const BuildConfigSchema: zod.ZodObject<{
|
|
19
|
+
corpusVersion: zod.ZodDefault<zod.ZodString>;
|
|
20
|
+
output: zod.ZodString;
|
|
21
|
+
inputs: zod.ZodString;
|
|
22
|
+
synthesize: zod.ZodDefault<zod.ZodOptional<zod.z.ZodCoercedBoolean<unknown>>>;
|
|
23
|
+
rowsPerShard: zod.ZodDefault<zod.ZodOptional<zod.z.ZodCoercedNumber<unknown>>>;
|
|
24
|
+
}, zod.z.core.$strip>;
|
|
25
|
+
export { BuildConfigSchema as options };
|
|
26
|
+
declare const CorpusBuild: CommandComponent<typeof BuildConfigSchema>;
|
|
27
|
+
export default CorpusBuild;
|
|
28
|
+
//# sourceMappingURL=build.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../commands/corpus/build.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAOH,OAAO,GAAG,MAAM,KAAK,CAAA;AACrB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAuBxD,QAAA,MAAM,iBAAiB;;;;;;qBAkBrB,CAAA;AAEF,OAAO,EAAE,iBAAiB,IAAI,OAAO,EAAE,CAAA;AAEvC,QAAA,MAAM,WAAW,EAAE,gBAAgB,CAAC,OAAO,iBAAiB,CAwE3D,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* @copyright Sister Software
|
|
4
|
+
* @license AGPL-3.0
|
|
5
|
+
* @author Teffen Ellis, et al.
|
|
6
|
+
*
|
|
7
|
+
* `mailwoman corpus build --version 0.1.0 --output /data/corpus/versioned/ --inputs '{ "wof-admin":
|
|
8
|
+
* "/data/wof/admin.db", "wof-postalcode": "/data/wof/post.db" }'`
|
|
9
|
+
*
|
|
10
|
+
* End-to-end corpus build. Drives every registered adapter (or the filtered subset) per `--inputs`,
|
|
11
|
+
* runs synthesis + alignment, computes the locality-holdout split, and writes the final JSONL
|
|
12
|
+
* shards + per-stage manifests under `<output>/corpus-v<version>/`.
|
|
13
|
+
*
|
|
14
|
+
* Adapters whose id is missing from `--inputs` are skipped (and noted in the manifest); this is how
|
|
15
|
+
* the CLI handles partial builds during development.
|
|
16
|
+
*/
|
|
17
|
+
import { buildCorpus, defaultAdapterRegistry } from "@mailwoman/corpus";
|
|
18
|
+
import { Box, Text } from "ink";
|
|
19
|
+
import { setImmediate } from "node:timers/promises";
|
|
20
|
+
import { useEffect, useState } from "react";
|
|
21
|
+
import zod from "zod";
|
|
22
|
+
/**
|
|
23
|
+
* `--inputs` accepts either:
|
|
24
|
+
*
|
|
25
|
+
* - A bare string (path-only, for adapters that need no extra options): `"wof-admin": "/data/wof.db"`
|
|
26
|
+
* - A full AdapterOptions object: `"openaddresses": { "inputPath": "/data/oa.geojsonl", "country":
|
|
27
|
+
* "US" }`
|
|
28
|
+
*
|
|
29
|
+
* The object form is required by adapters that need a country filter (OpenAddresses), or for
|
|
30
|
+
* fixture runs that want a `limit`.
|
|
31
|
+
*/
|
|
32
|
+
const AdapterInputSchema = zod.union([
|
|
33
|
+
zod.string(),
|
|
34
|
+
zod.object({
|
|
35
|
+
inputPath: zod.string(),
|
|
36
|
+
outputDir: zod.string().optional(),
|
|
37
|
+
country: zod.string().optional(),
|
|
38
|
+
limit: zod.number().int().positive().optional(),
|
|
39
|
+
}),
|
|
40
|
+
]);
|
|
41
|
+
const InputsSchema = zod.record(zod.string(), AdapterInputSchema);
|
|
42
|
+
const BuildConfigSchema = zod.object({
|
|
43
|
+
corpusVersion: zod
|
|
44
|
+
.string()
|
|
45
|
+
.default("0.1.0-dev")
|
|
46
|
+
.describe("Corpus version stamped onto every row + into the output dir name (--version is reserved by Pastel for the CLI's own version)"),
|
|
47
|
+
output: zod.string().describe("Root output directory; everything lands beneath corpus-v<corpus-version>/"),
|
|
48
|
+
inputs: zod
|
|
49
|
+
.string()
|
|
50
|
+
.describe('JSON map "adapter-id" → input. Each value is either an input path string or a full ' +
|
|
51
|
+
'AdapterOptions object {"inputPath","country?","limit?"}. Adapters requiring a country ' +
|
|
52
|
+
"filter (e.g. openaddresses) need the object form. Example: " +
|
|
53
|
+
'{"wof-admin":"/data/wof.db","openaddresses":{"inputPath":"/data/oa.geojsonl","country":"US"}}'),
|
|
54
|
+
synthesize: zod.coerce.boolean().optional().default(true).describe("Enable augmentation pass (default true)"),
|
|
55
|
+
rowsPerShard: zod.coerce.number().int().positive().optional().default(1_000_000).describe("Max rows per JSONL shard"),
|
|
56
|
+
});
|
|
57
|
+
export { BuildConfigSchema as options };
|
|
58
|
+
const CorpusBuild = ({ options }) => {
|
|
59
|
+
const [error, setError] = useState();
|
|
60
|
+
const [done, setDone] = useState();
|
|
61
|
+
const [stage, setStage] = useState();
|
|
62
|
+
useEffect(() => {
|
|
63
|
+
if (error) {
|
|
64
|
+
setImmediate().then(() => process.exit(1));
|
|
65
|
+
}
|
|
66
|
+
else if (done) {
|
|
67
|
+
setImmediate().then(() => process.exit(0));
|
|
68
|
+
}
|
|
69
|
+
}, [error, done]);
|
|
70
|
+
useEffect(() => {
|
|
71
|
+
let inputsParsed;
|
|
72
|
+
try {
|
|
73
|
+
inputsParsed = InputsSchema.parse(JSON.parse(options.inputs));
|
|
74
|
+
}
|
|
75
|
+
catch (err) {
|
|
76
|
+
// eslint-disable-next-line react-hooks/set-state-in-effect -- one-shot mount validation; refactor pending
|
|
77
|
+
setError(`invalid --inputs JSON: ${err.message}`);
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
const adapterInputs = Object.fromEntries(Object.entries(inputsParsed).map(([id, value]) => [id, typeof value === "string" ? { inputPath: value } : value]));
|
|
81
|
+
const adapters = defaultAdapterRegistry.list();
|
|
82
|
+
buildCorpus({
|
|
83
|
+
outputDir: options.output,
|
|
84
|
+
corpusVersion: options.corpusVersion,
|
|
85
|
+
adapters,
|
|
86
|
+
adapterInputs,
|
|
87
|
+
synthesize: options.synthesize,
|
|
88
|
+
rowsPerShard: options.rowsPerShard,
|
|
89
|
+
onProgress: (name, message) => setStage({ name, message }),
|
|
90
|
+
})
|
|
91
|
+
.then((m) => setDone({
|
|
92
|
+
total: m.shards.total_rows,
|
|
93
|
+
aligned: m.total_aligned_rows,
|
|
94
|
+
quarantined: m.quarantine_count,
|
|
95
|
+
adapters: m.adapters.length,
|
|
96
|
+
}))
|
|
97
|
+
.catch((err) => setError(err.message));
|
|
98
|
+
}, [options]);
|
|
99
|
+
if (error)
|
|
100
|
+
return _jsx(Text, { color: "red", children: error });
|
|
101
|
+
if (done) {
|
|
102
|
+
return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Text, { children: ["corpus-v", options.corpusVersion, ": ", _jsx(Text, { color: "green", children: done.total }), " rows (", done.adapters, " adapters,", " ", _jsxs(Text, { dimColor: true, children: [done.quarantined, " quarantined"] }), ")"] }), _jsx(Text, { dimColor: true, children: options.output })] }));
|
|
103
|
+
}
|
|
104
|
+
return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Text, { children: ["building corpus-v", options.corpusVersion, "\u2026"] }), stage ? (_jsxs(Text, { dimColor: true, children: ["[", stage.name, "] ", stage.message] })) : null] }));
|
|
105
|
+
};
|
|
106
|
+
export default CorpusBuild;
|
|
107
|
+
//# sourceMappingURL=build.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../../commands/corpus/build.tsx"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @copyright Sister Software
|
|
3
|
+
* @license AGPL-3.0
|
|
4
|
+
* @author Teffen Ellis, et al.
|
|
5
|
+
*
|
|
6
|
+
* `mailwoman corpus list` — print every adapter known to the default registry, one per line.
|
|
7
|
+
*
|
|
8
|
+
* Used by humans and by scripts that want to fan out a build over adapters. Prints nothing (zero
|
|
9
|
+
* lines + exit 0) when no adapter has been registered yet; that's the expected state during early
|
|
10
|
+
* Phase 1 while adapters are still being authored.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Per-line output is rendered as a single `Text` node so Ink does not column-wrap the adapter id
|
|
14
|
+
* when the host stdout is non-TTY (CI, spawned tests). The list is meant to be grep-friendly, not
|
|
15
|
+
* pretty.
|
|
16
|
+
*/
|
|
17
|
+
declare const CorpusList: () => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export default CorpusList;
|
|
19
|
+
//# sourceMappingURL=list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../commands/corpus/list.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAKH;;;;GAIG;AACH,QAAA,MAAM,UAAU,+CAcf,CAAA;AAED,eAAe,UAAU,CAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* @copyright Sister Software
|
|
4
|
+
* @license AGPL-3.0
|
|
5
|
+
* @author Teffen Ellis, et al.
|
|
6
|
+
*
|
|
7
|
+
* `mailwoman corpus list` — print every adapter known to the default registry, one per line.
|
|
8
|
+
*
|
|
9
|
+
* Used by humans and by scripts that want to fan out a build over adapters. Prints nothing (zero
|
|
10
|
+
* lines + exit 0) when no adapter has been registered yet; that's the expected state during early
|
|
11
|
+
* Phase 1 while adapters are still being authored.
|
|
12
|
+
*/
|
|
13
|
+
import { defaultAdapterRegistry } from "@mailwoman/corpus";
|
|
14
|
+
import { Box, Text } from "ink";
|
|
15
|
+
/**
|
|
16
|
+
* Per-line output is rendered as a single `Text` node so Ink does not column-wrap the adapter id
|
|
17
|
+
* when the host stdout is non-TTY (CI, spawned tests). The list is meant to be grep-friendly, not
|
|
18
|
+
* pretty.
|
|
19
|
+
*/
|
|
20
|
+
const CorpusList = () => {
|
|
21
|
+
const adapters = defaultAdapterRegistry.list();
|
|
22
|
+
if (adapters.length === 0) {
|
|
23
|
+
return _jsx(Text, { dimColor: true, children: "No adapters registered." });
|
|
24
|
+
}
|
|
25
|
+
return (_jsx(Box, { flexDirection: "column", children: adapters.map((a) => (_jsx(Text, { children: `${a.id}\t${a.defaultLicense}\t${a.description}` }, a.id))) }));
|
|
26
|
+
};
|
|
27
|
+
export default CorpusList;
|
|
28
|
+
//# sourceMappingURL=list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../commands/corpus/list.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAA;AAC1D,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAE/B;;;;GAIG;AACH,MAAM,UAAU,GAAG,GAAG,EAAE;IACvB,MAAM,QAAQ,GAAG,sBAAsB,CAAC,IAAI,EAAE,CAAA;IAE9C,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC3B,OAAO,KAAC,IAAI,IAAC,QAAQ,8CAA+B,CAAA;IACrD,CAAC;IAED,OAAO,CACN,KAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,YACzB,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CACpB,KAAC,IAAI,cAAa,GAAG,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,cAAc,KAAK,CAAC,CAAC,WAAW,EAAE,IAAvD,CAAC,CAAC,EAAE,CAA2D,CAC1E,CAAC,GACG,CACN,CAAA;AACF,CAAC,CAAA;AAED,eAAe,UAAU,CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @copyright Sister Software
|
|
3
|
+
* @license AGPL-3.0
|
|
4
|
+
* @author Teffen Ellis, et al.
|
|
5
|
+
*
|
|
6
|
+
* `mailwoman corpus run <adapter-id> --input <path> --output <dir> [--country XX] [--limit N]`
|
|
7
|
+
*
|
|
8
|
+
* CLI shim around `runAdapter` from `@mailwoman/corpus`. Resolves `<adapter-id>` against the
|
|
9
|
+
* default registry; refuses with a clear, non-zero exit if the id isn't known (and lists the
|
|
10
|
+
* registered ids). On success, prints a one-line summary and the path to the manifest file.
|
|
11
|
+
*/
|
|
12
|
+
import zod from "zod";
|
|
13
|
+
import type { CommandComponent } from "../../sdk/cli.js";
|
|
14
|
+
declare const ArgumentsSchema: zod.ZodArray<zod.ZodString>;
|
|
15
|
+
declare const RunConfigSchema: zod.ZodObject<{
|
|
16
|
+
input: zod.ZodString;
|
|
17
|
+
output: zod.ZodString;
|
|
18
|
+
country: zod.ZodOptional<zod.ZodString>;
|
|
19
|
+
limit: zod.ZodOptional<zod.z.ZodCoercedNumber<unknown>>;
|
|
20
|
+
corpusVersion: zod.ZodDefault<zod.ZodOptional<zod.ZodString>>;
|
|
21
|
+
progressEvery: zod.ZodDefault<zod.ZodOptional<zod.z.ZodCoercedNumber<unknown>>>;
|
|
22
|
+
}, zod.z.core.$strip>;
|
|
23
|
+
export { ArgumentsSchema as args, RunConfigSchema as options };
|
|
24
|
+
declare const CorpusRun: CommandComponent<typeof RunConfigSchema, typeof ArgumentsSchema>;
|
|
25
|
+
export default CorpusRun;
|
|
26
|
+
//# sourceMappingURL=run.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../commands/corpus/run.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAOH,OAAO,GAAG,MAAM,KAAK,CAAA;AACrB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAExD,QAAA,MAAM,eAAe,6BAAsF,CAAA;AAE3G,QAAA,MAAM,eAAe;;;;;;;qBA0BnB,CAAA;AAEF,OAAO,EAAE,eAAe,IAAI,IAAI,EAAE,eAAe,IAAI,OAAO,EAAE,CAAA;AAE9D,QAAA,MAAM,SAAS,EAAE,gBAAgB,CAAC,OAAO,eAAe,EAAE,OAAO,eAAe,CA2F/E,CAAA;AAED,eAAe,SAAS,CAAA"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* @copyright Sister Software
|
|
4
|
+
* @license AGPL-3.0
|
|
5
|
+
* @author Teffen Ellis, et al.
|
|
6
|
+
*
|
|
7
|
+
* `mailwoman corpus run <adapter-id> --input <path> --output <dir> [--country XX] [--limit N]`
|
|
8
|
+
*
|
|
9
|
+
* CLI shim around `runAdapter` from `@mailwoman/corpus`. Resolves `<adapter-id>` against the
|
|
10
|
+
* default registry; refuses with a clear, non-zero exit if the id isn't known (and lists the
|
|
11
|
+
* registered ids). On success, prints a one-line summary and the path to the manifest file.
|
|
12
|
+
*/
|
|
13
|
+
import { ProgressBar } from "@inkjs/ui";
|
|
14
|
+
import { defaultAdapterRegistry, runAdapter } from "@mailwoman/corpus";
|
|
15
|
+
import { Box, Text } from "ink";
|
|
16
|
+
import { setImmediate } from "node:timers/promises";
|
|
17
|
+
import { useEffect, useState } from "react";
|
|
18
|
+
import zod from "zod";
|
|
19
|
+
const ArgumentsSchema = zod.array(zod.string().describe("Adapter id (e.g. wof-admin, ban, openaddresses)"));
|
|
20
|
+
const RunConfigSchema = zod.object({
|
|
21
|
+
input: zod.string().describe("Path to the adapter's input data (file, directory, or URL — adapter-specific)"),
|
|
22
|
+
output: zod.string().describe("Output root directory; the runner creates <output>/<adapter-id>/ under it"),
|
|
23
|
+
country: zod
|
|
24
|
+
.string()
|
|
25
|
+
.regex(/^[A-Z]{2}$/u, "Expected ISO 3166-1 alpha-2 country code (e.g. US, FR)")
|
|
26
|
+
.optional()
|
|
27
|
+
.describe("Filter to a single ISO 3166-1 alpha-2 country"),
|
|
28
|
+
limit: zod.coerce
|
|
29
|
+
.number()
|
|
30
|
+
.int()
|
|
31
|
+
.positive()
|
|
32
|
+
.optional()
|
|
33
|
+
.describe("Soft cap on rows the adapter is allowed to emit (smoke runs, fixtures)"),
|
|
34
|
+
corpusVersion: zod
|
|
35
|
+
.string()
|
|
36
|
+
.optional()
|
|
37
|
+
.default("0.1.0-dev")
|
|
38
|
+
.describe("Corpus version string stamped onto every row; locks tokenizer pairing"),
|
|
39
|
+
progressEvery: zod.coerce
|
|
40
|
+
.number()
|
|
41
|
+
.int()
|
|
42
|
+
.positive()
|
|
43
|
+
.optional()
|
|
44
|
+
.default(1_000)
|
|
45
|
+
.describe("Yield count between progress ticks (smaller = chattier, larger = quieter)"),
|
|
46
|
+
});
|
|
47
|
+
export { ArgumentsSchema as args, RunConfigSchema as options };
|
|
48
|
+
const CorpusRun = ({ options, args }) => {
|
|
49
|
+
const [error, setError] = useState();
|
|
50
|
+
const [progress, setProgress] = useState({
|
|
51
|
+
yielded: 0,
|
|
52
|
+
written: 0,
|
|
53
|
+
bytes: 0,
|
|
54
|
+
});
|
|
55
|
+
const [manifest, setManifest] = useState();
|
|
56
|
+
useEffect(() => {
|
|
57
|
+
if (error) {
|
|
58
|
+
setImmediate().then(() => process.exit(1));
|
|
59
|
+
}
|
|
60
|
+
else if (manifest) {
|
|
61
|
+
setImmediate().then(() => process.exit(0));
|
|
62
|
+
}
|
|
63
|
+
}, [error, manifest]);
|
|
64
|
+
useEffect(() => {
|
|
65
|
+
const adapterId = args[0];
|
|
66
|
+
if (!adapterId) {
|
|
67
|
+
// eslint-disable-next-line react-hooks/set-state-in-effect -- one-shot mount validation; refactor pending
|
|
68
|
+
setError("missing positional argument: <adapter-id>");
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
const adapter = defaultAdapterRegistry.get(adapterId);
|
|
72
|
+
if (!adapter) {
|
|
73
|
+
const ids = defaultAdapterRegistry.ids();
|
|
74
|
+
const hint = ids.length === 0 ? "(no adapters registered yet)" : `registered: ${ids.join(", ")}`;
|
|
75
|
+
setError(`unknown adapter id ${JSON.stringify(adapterId)}; ${hint}`);
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
const ac = new AbortController();
|
|
79
|
+
runAdapter({
|
|
80
|
+
adapter,
|
|
81
|
+
adapterOptions: {
|
|
82
|
+
inputPath: options.input,
|
|
83
|
+
outputDir: options.output,
|
|
84
|
+
country: options.country,
|
|
85
|
+
limit: options.limit,
|
|
86
|
+
signal: ac.signal,
|
|
87
|
+
},
|
|
88
|
+
outputDir: options.output,
|
|
89
|
+
corpusVersion: options.corpusVersion,
|
|
90
|
+
progressEvery: options.progressEvery,
|
|
91
|
+
onProgress: (snap) => {
|
|
92
|
+
setProgress({ yielded: snap.yielded, written: snap.written, bytes: snap.bytes });
|
|
93
|
+
},
|
|
94
|
+
})
|
|
95
|
+
.then((m) => setManifest(m))
|
|
96
|
+
.catch((err) => setError(err.message));
|
|
97
|
+
return () => ac.abort();
|
|
98
|
+
}, [args, options]);
|
|
99
|
+
if (error) {
|
|
100
|
+
return _jsx(Text, { color: "red", children: error });
|
|
101
|
+
}
|
|
102
|
+
if (manifest) {
|
|
103
|
+
return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Text, { children: [_jsx(Text, { bold: true, children: manifest.adapter_id }), ": wrote ", _jsx(Text, { color: "green", children: manifest.written }), " rows (", _jsxs(Text, { dimColor: true, children: [manifest.deduped, " deduped"] }), ") in ", (manifest.elapsed_ms / 1000).toFixed(2), "s"] }), _jsx(Text, { dimColor: true, children: manifest.jsonl_path }), _jsxs(Text, { dimColor: true, children: ["sha256=", manifest.sha256] })] }));
|
|
104
|
+
}
|
|
105
|
+
const ratio = progress.written && progress.yielded ? (progress.written / progress.yielded) * 100 : 0;
|
|
106
|
+
return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Text, { children: ["yielded=", progress.yielded, " ", "written=", progress.written, " ", "bytes=", progress.bytes] }), _jsx(Box, { paddingX: 1, children: _jsx(ProgressBar, { value: Math.min(100, ratio) }) })] }));
|
|
107
|
+
};
|
|
108
|
+
export default CorpusRun;
|
|
109
|
+
//# sourceMappingURL=run.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run.js","sourceRoot":"","sources":["../../../commands/corpus/run.tsx"],"names":[],"mappings":"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"}
|
package/out/commands/debug.d.ts
CHANGED
|
@@ -3,10 +3,13 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*/
|
|
6
|
-
import { PositionalCommandComponent } from "mailwoman/sdk/cli";
|
|
7
6
|
import zod from "zod";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
declare const
|
|
7
|
+
import type { CommandComponent } from "../sdk/cli.js";
|
|
8
|
+
declare const ArgumentsSchema: zod.ZodArray<zod.ZodString>;
|
|
9
|
+
declare const DebugConfigSchema: zod.ZodObject<{
|
|
10
|
+
locale: zod.ZodOptional<zod.ZodString>;
|
|
11
|
+
}, zod.z.core.$strip>;
|
|
12
|
+
export { ArgumentsSchema as args, DebugConfigSchema as options };
|
|
13
|
+
declare const DebugCommand: CommandComponent<typeof DebugConfigSchema, typeof ArgumentsSchema>;
|
|
11
14
|
export default DebugCommand;
|
|
12
15
|
//# sourceMappingURL=debug.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../../commands/debug.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../../commands/debug.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,OAAO,GAAG,MAAM,KAAK,CAAA;AACrB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAErD,QAAA,MAAM,eAAe,6BAAiE,CAAA;AACtF,QAAA,MAAM,iBAAiB;;qBAMrB,CAAA;AACF,OAAO,EAAE,eAAe,IAAI,IAAI,EAAE,iBAAiB,IAAI,OAAO,EAAE,CAAA;AAEhE,QAAA,MAAM,YAAY,EAAE,gBAAgB,CAAC,OAAO,iBAAiB,EAAE,OAAO,eAAe,CA0BpF,CAAA;AAED,eAAe,YAAY,CAAA"}
|
package/out/commands/debug.js
CHANGED
|
@@ -10,19 +10,27 @@ import { createAddressParser, createDiagnosticReport } from "mailwoman";
|
|
|
10
10
|
import { useEffect, useState } from "react";
|
|
11
11
|
import zod from "zod";
|
|
12
12
|
const ArgumentsSchema = zod.array(zod.string().describe("A formatted postal address"));
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
const DebugConfigSchema = zod.object({
|
|
14
|
+
locale: zod
|
|
15
|
+
.string()
|
|
16
|
+
.regex(/^[a-z]{2}(-[A-Z]{2})?$/u, "Expected a BCP-47 tag like en-US or fr-FR")
|
|
17
|
+
.optional()
|
|
18
|
+
.describe("BCP-47 locale tag (e.g. en-US, fr-FR). Reserved for the upcoming neural pipeline."),
|
|
19
|
+
});
|
|
20
|
+
export { ArgumentsSchema as args, DebugConfigSchema as options };
|
|
21
|
+
const DebugCommand = ({ options, args }) => {
|
|
15
22
|
const [output, setOutput] = useState();
|
|
16
23
|
const [error, setError] = useState();
|
|
17
24
|
useEffect(() => {
|
|
18
25
|
const parser = createAddressParser();
|
|
26
|
+
const parseOpts = options.locale ? { verbose: true, locale: options.locale } : { verbose: true };
|
|
19
27
|
parser
|
|
20
|
-
.parse(args[0],
|
|
28
|
+
.parse(args[0], parseOpts)
|
|
21
29
|
.then(createDiagnosticReport)
|
|
22
30
|
.then(setOutput)
|
|
23
31
|
.catch((err) => setError(err.message));
|
|
24
32
|
return;
|
|
25
|
-
}, [args]);
|
|
33
|
+
}, [args, options.locale]);
|
|
26
34
|
if (error) {
|
|
27
35
|
return _jsx(Text, { color: "red", children: error });
|
|
28
36
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debug.js","sourceRoot":"","sources":["../../commands/debug.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAC1B,OAAO,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"debug.js","sourceRoot":"","sources":["../../commands/debug.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAC1B,OAAO,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAA;AACvE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC3C,OAAO,GAAG,MAAM,KAAK,CAAA;AAGrB,MAAM,eAAe,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,4BAA4B,CAAC,CAAC,CAAA;AACtF,MAAM,iBAAiB,GAAG,GAAG,CAAC,MAAM,CAAC;IACpC,MAAM,EAAE,GAAG;SACT,MAAM,EAAE;SACR,KAAK,CAAC,yBAAyB,EAAE,2CAA2C,CAAC;SAC7E,QAAQ,EAAE;SACV,QAAQ,CAAC,mFAAmF,CAAC;CAC/F,CAAC,CAAA;AACF,OAAO,EAAE,eAAe,IAAI,IAAI,EAAE,iBAAiB,IAAI,OAAO,EAAE,CAAA;AAEhE,MAAM,YAAY,GAAuE,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE;IAC9G,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,EAAU,CAAA;IAC9C,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,EAAU,CAAA;IAE5C,SAAS,CAAC,GAAG,EAAE;QACd,MAAM,MAAM,GAAG,mBAAmB,EAAE,CAAA;QACpC,MAAM,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,IAAa,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,IAAa,EAAE,CAAA;QAElH,MAAM;aACJ,KAAK,CAAC,IAAI,CAAC,CAAC,CAAE,EAAE,SAAS,CAAC;aAC1B,IAAI,CAAC,sBAAsB,CAAC;aAC5B,IAAI,CAAC,SAAS,CAAC;aACf,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAA;QAEvC,OAAM;IACP,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,CAAA;IAE1B,IAAI,KAAK,EAAE,CAAC;QACX,OAAO,KAAC,IAAI,IAAC,KAAK,EAAC,KAAK,YAAE,KAAK,GAAQ,CAAA;IACxC,CAAC;IAED,IAAI,CAAC,MAAM,EAAE,CAAC;QACb,OAAO,KAAC,OAAO,KAAG,CAAA;IACnB,CAAC;IAED,OAAO,KAAC,IAAI,cAAE,MAAM,GAAQ,CAAA;AAC7B,CAAC,CAAA;AAED,eAAe,YAAY,CAAA"}
|
package/out/commands/parse.d.ts
CHANGED
|
@@ -3,17 +3,23 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*/
|
|
6
|
-
import { CommandComponent } from "mailwoman/sdk/cli";
|
|
7
6
|
import zod from "zod";
|
|
8
|
-
|
|
7
|
+
import type { CommandComponent } from "../sdk/cli.js";
|
|
8
|
+
declare const ArgumentsSchema: zod.ZodArray<zod.ZodString>;
|
|
9
9
|
export { ArgumentsSchema as args, ParseConfigSchema as options };
|
|
10
10
|
declare const ParseConfigSchema: zod.ZodObject<{
|
|
11
11
|
debug: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
locale: zod.ZodDefault<zod.ZodOptional<zod.ZodString>>;
|
|
13
|
+
neural: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
|
|
14
|
+
format: zod.ZodDefault<zod.ZodOptional<zod.ZodEnum<{
|
|
15
|
+
tuple: "tuple";
|
|
16
|
+
json: "json";
|
|
17
|
+
xml: "xml";
|
|
18
|
+
}>>>;
|
|
19
|
+
model: zod.ZodOptional<zod.ZodString>;
|
|
20
|
+
tokenizer: zod.ZodOptional<zod.ZodString>;
|
|
21
|
+
policy: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
22
|
+
}, zod.z.core.$strip>;
|
|
17
23
|
declare const ParseCommand: CommandComponent<typeof ParseConfigSchema, typeof ArgumentsSchema>;
|
|
18
24
|
export default ParseCommand;
|
|
19
25
|
//# sourceMappingURL=parse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../commands/parse.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../commands/parse.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAWH,OAAO,GAAG,MAAM,KAAK,CAAA;AACrB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAKrD,QAAA,MAAM,eAAe,6BAAiE,CAAA;AACtF,OAAO,EAAE,eAAe,IAAI,IAAI,EAAE,iBAAiB,IAAI,OAAO,EAAE,CAAA;AAEhE,QAAA,MAAM,iBAAiB;;;;;;;;;;;;qBA+BrB,CAAA;AAqBF,QAAA,MAAM,YAAY,EAAE,gBAAgB,CAAC,OAAO,iBAAiB,EAAE,OAAO,eAAe,CAwDpF,CAAA;AAsDD,eAAe,YAAY,CAAA"}
|
package/out/commands/parse.js
CHANGED
|
@@ -5,35 +5,104 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
5
5
|
* @author Teffen Ellis, et al.
|
|
6
6
|
*/
|
|
7
7
|
import { Spinner } from "@inkjs/ui";
|
|
8
|
+
import { decodeAsJson, decodeAsTuples, decodeAsXml, proposalsToTree } from "@mailwoman/core/decoder";
|
|
9
|
+
import { collectProposals, filterByPolicy } from "@mailwoman/core/parser";
|
|
10
|
+
import { InMemoryPolicyRegistry } from "@mailwoman/core/policy";
|
|
11
|
+
import { createNeuralProposalClassifier, NeuralAddressClassifier } from "@mailwoman/neural";
|
|
8
12
|
import { Text } from "ink";
|
|
9
13
|
import { createAddressParser, createDiagnosticReport } from "mailwoman";
|
|
10
14
|
import { useEffect, useState } from "react";
|
|
11
15
|
import zod from "zod";
|
|
16
|
+
const POLICY_MODES = ["rule_only", "neural_only", "both", "neural_preferred", "rule_preferred"];
|
|
17
|
+
const POLICY_SPEC_RE = /^([a-z_]+)=([a-z_]+)$/u;
|
|
12
18
|
const ArgumentsSchema = zod.array(zod.string().describe("A formatted postal address"));
|
|
13
19
|
export { ArgumentsSchema as args, ParseConfigSchema as options };
|
|
14
20
|
const ParseConfigSchema = zod.object({
|
|
15
21
|
debug: zod.boolean().optional().default(false).describe("Enable verbose debugging output"),
|
|
22
|
+
locale: zod
|
|
23
|
+
.string()
|
|
24
|
+
.regex(/^[a-z]{2}(-[A-Z]{2})?$/u, "Expected a BCP-47 tag like en-US or fr-FR")
|
|
25
|
+
.optional()
|
|
26
|
+
.default("en-US")
|
|
27
|
+
.describe("Locale tag matching a weights package (en-US, fr-FR). Default en-US."),
|
|
28
|
+
neural: zod
|
|
29
|
+
.boolean()
|
|
30
|
+
.optional()
|
|
31
|
+
.default(false)
|
|
32
|
+
.describe("Route through the neural classifier instead of the rule-based parser."),
|
|
33
|
+
format: zod
|
|
34
|
+
.enum(["json", "tuple", "xml"])
|
|
35
|
+
.optional()
|
|
36
|
+
.default("json")
|
|
37
|
+
.describe("Output projection for --neural. Ignored without --neural."),
|
|
38
|
+
model: zod.string().optional().describe("Explicit model.onnx path (--neural only). Overrides --locale resolution."),
|
|
39
|
+
tokenizer: zod
|
|
40
|
+
.string()
|
|
41
|
+
.optional()
|
|
42
|
+
.describe("Explicit tokenizer.model path (--neural only). Overrides --locale resolution."),
|
|
43
|
+
policy: zod
|
|
44
|
+
.array(zod.string().regex(POLICY_SPEC_RE, "Expected <component>=<mode> e.g. postcode=neural_preferred"))
|
|
45
|
+
.optional()
|
|
46
|
+
.describe("Per-component policy override, repeatable. <component>=<mode> where mode is one of: " +
|
|
47
|
+
POLICY_MODES.join(", ") +
|
|
48
|
+
". Requires --neural."),
|
|
16
49
|
});
|
|
50
|
+
function parsePolicySpecs(specs) {
|
|
51
|
+
const out = [];
|
|
52
|
+
for (const spec of specs) {
|
|
53
|
+
const m = POLICY_SPEC_RE.exec(spec);
|
|
54
|
+
if (!m)
|
|
55
|
+
throw new Error(`Invalid --policy spec ${spec}; expected <component>=<mode>`);
|
|
56
|
+
const [, component, mode] = m;
|
|
57
|
+
if (!POLICY_MODES.includes(mode)) {
|
|
58
|
+
throw new Error(`Unknown policy mode ${mode}; valid: ${POLICY_MODES.join(", ")}`);
|
|
59
|
+
}
|
|
60
|
+
out.push({ component: component, mode: mode });
|
|
61
|
+
}
|
|
62
|
+
return out;
|
|
63
|
+
}
|
|
17
64
|
const ParseCommand = ({ options, args }) => {
|
|
18
65
|
const [output, setOutput] = useState();
|
|
19
66
|
const [error, setError] = useState();
|
|
20
67
|
useEffect(() => {
|
|
21
|
-
const parser = createAddressParser();
|
|
22
68
|
const input = args[0];
|
|
69
|
+
if (options.policy && options.policy.length > 0 && !options.neural) {
|
|
70
|
+
// eslint-disable-next-line react-hooks/set-state-in-effect -- one-shot mount validation; refactor pending
|
|
71
|
+
setError("--policy requires --neural in this version (rule-side policy integration is a follow-up).");
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
if (options.neural) {
|
|
75
|
+
const policyOverrides = options.policy ? parsePolicySpecs(options.policy) : [];
|
|
76
|
+
runNeural(input, options, policyOverrides)
|
|
77
|
+
.then(setOutput)
|
|
78
|
+
.catch((err) => setError(err.message));
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
const parser = createAddressParser();
|
|
82
|
+
const parseOpts = options.locale ? { locale: options.locale } : {};
|
|
23
83
|
if (options.debug) {
|
|
24
84
|
parser
|
|
25
|
-
.parse(input, { verbose: true })
|
|
85
|
+
.parse(input, { verbose: true, ...parseOpts })
|
|
26
86
|
.then(createDiagnosticReport)
|
|
27
87
|
.then(setOutput)
|
|
28
88
|
.catch((err) => setError(err.message));
|
|
29
89
|
}
|
|
30
90
|
else {
|
|
31
91
|
parser
|
|
32
|
-
.parse(input)
|
|
92
|
+
.parse(input, parseOpts)
|
|
33
93
|
.then((results) => setOutput(JSON.stringify(results, null, 2)))
|
|
34
94
|
.catch((err) => setError(err.message));
|
|
35
95
|
}
|
|
36
|
-
}, [
|
|
96
|
+
}, [
|
|
97
|
+
args,
|
|
98
|
+
options.debug,
|
|
99
|
+
options.locale,
|
|
100
|
+
options.neural,
|
|
101
|
+
options.format,
|
|
102
|
+
options.model,
|
|
103
|
+
options.tokenizer,
|
|
104
|
+
options.policy,
|
|
105
|
+
]);
|
|
37
106
|
if (error) {
|
|
38
107
|
return _jsx(Text, { color: "red", children: error });
|
|
39
108
|
}
|
|
@@ -42,5 +111,48 @@ const ParseCommand = ({ options, args }) => {
|
|
|
42
111
|
}
|
|
43
112
|
return _jsx(Text, { children: output });
|
|
44
113
|
};
|
|
114
|
+
async function runNeural(input, options, policyOverrides) {
|
|
115
|
+
const neural = await NeuralAddressClassifier.loadFromWeights({
|
|
116
|
+
locale: options.locale,
|
|
117
|
+
modelPath: options.model,
|
|
118
|
+
tokenizerPath: options.tokenizer,
|
|
119
|
+
});
|
|
120
|
+
// Fast path: no policy → use the existing direct projection, preserves containment nesting.
|
|
121
|
+
if (policyOverrides.length === 0) {
|
|
122
|
+
switch (options.format) {
|
|
123
|
+
case "xml":
|
|
124
|
+
return neural.parseXml(input);
|
|
125
|
+
case "tuple":
|
|
126
|
+
return JSON.stringify(await neural.parseTuples(input), null, 2);
|
|
127
|
+
default:
|
|
128
|
+
return JSON.stringify(await neural.parseJson(input), null, 2);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
// Policy path: run the proposal pipeline so per-component overrides are honored. Containment
|
|
132
|
+
// nesting is lost in this projection — see proposals-to-tree.ts for why.
|
|
133
|
+
const proposalCls = createNeuralProposalClassifier({ id: `neural-cli-${options.locale}`, classifier: neural });
|
|
134
|
+
// Without rule classifiers in the CLI loop, the registry's default rule_only would drop every
|
|
135
|
+
// neural proposal and produce empty output. Default every component to neural_only when
|
|
136
|
+
// --neural --policy is used, then layer the user's overrides on top.
|
|
137
|
+
const policy = InMemoryPolicyRegistry.withDefaults();
|
|
138
|
+
for (const entry of policy.entries()) {
|
|
139
|
+
policy.set({ component: entry.component, mode: "neural_only" });
|
|
140
|
+
}
|
|
141
|
+
for (const o of policyOverrides) {
|
|
142
|
+
policy.set({ component: o.component, mode: o.mode });
|
|
143
|
+
}
|
|
144
|
+
const wholeInputSection = { body: input, start: 0, end: input.length };
|
|
145
|
+
const proposals = await collectProposals([wholeInputSection], [proposalCls], { locale: options.locale });
|
|
146
|
+
const filtered = filterByPolicy(proposals, policy, options.locale);
|
|
147
|
+
const tree = proposalsToTree(input, filtered);
|
|
148
|
+
switch (options.format) {
|
|
149
|
+
case "xml":
|
|
150
|
+
return decodeAsXml(tree);
|
|
151
|
+
case "tuple":
|
|
152
|
+
return JSON.stringify(decodeAsTuples(tree), null, 2);
|
|
153
|
+
default:
|
|
154
|
+
return JSON.stringify(decodeAsJson(tree), null, 2);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
45
157
|
export default ParseCommand;
|
|
46
158
|
//# sourceMappingURL=parse.js.map
|