Skip to content

Comments

Add normalizer for WOF which can be configured to remove accents/hyphen and lowercase#33

Merged
missinglink merged 1 commit intomasterfrom
joxit/wof-normalize
Jun 5, 2019
Merged

Add normalizer for WOF which can be configured to remove accents/hyphen and lowercase#33
missinglink merged 1 commit intomasterfrom
joxit/wof-normalize

Conversation

@Joxit
Copy link
Member

@Joxit Joxit commented Jun 1, 2019

In France, we have tons of localities with accents and hyphen and they aren't mandatory.
That's why we need to normalize them a bit more.

Supports for

  • Localities/Countries/Regions with hyphen
  • Localities/Countries/Regions with accents
  • Localities/Countries/Regions with UpperCases

Now Available

How it works

You can require the normalizer module which can be configured (it will return a configured function).
Thanks to this, you don't need to give every time your options for the normalization.
I also added an option in wof resources to take a configured normalizer.

For now, this is only available for WOF, I need more use cases for others classifiers.

…emove accents/hyphen/spaces and do lowercase
@missinglink
Copy link
Member

This is pretty cool 👍

@missinglink missinglink merged commit 94c9b4a into master Jun 5, 2019
@Joxit Joxit deleted the joxit/wof-normalize branch June 5, 2019 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants