Skip to content

Commit

Permalink
Merge branch 'nl-improvements' of github.com:webmapper/parser into nl…
Browse files Browse the repository at this point in the history
…-improvements
  • Loading branch information
emacgillavry committed Sep 7, 2021
2 parents e5cefad + 45323e8 commit ad32048
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions classifier/CompoundStreetClassifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ class CompoundStreetClassifier extends WordClassifier {
// this removes suffixes such as 'r.' which can be ambiguous
minlength: 3
})

libpostal.load(this.suffixes, ['de', 'nl'], 'concatenated_suffixes_inseparable.txt', {
// remove any suffixes which contain less than 3 characters (excluding a period)
// this removes suffixes such as 'r.' which can be ambiguous
minlength: 3
})
}

each (span) {
Expand Down

0 comments on commit ad32048

Please sign in to comment.