Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added automotive provider for nl_NL #1548

Merged
merged 1 commit into from Oct 19, 2021
Merged

Conversation

MarcelRobeer
Copy link
Contributor

@MarcelRobeer MarcelRobeer commented Oct 11, 2021

What does this change?

Added an automotive provider for Dutch (nl_NL), which generates license plates for cars, motorbikes and other road vehicles according to https://en.wikipedia.org/wiki/Vehicle_registration_plates_of_the_Netherlands (format 6 through 10, covering 1999 to present).

What was wrong

faker dit not include license plate formats for the nl_NL locale.

How this fixes it

  • Added an nl_NL folder in faker/providers/automotive/
  • Added an __init__.py file in the nl_NL folder, with the same format as faker/providers/date_time/es_ES/__init__.py
  • Added license plates for motorbikes (license_plate_motorbike()), cars and other vehicles (license_plate_motorbike()), and override license_plate() to generate 10% motorbike plates and 90% other road vehicle plates (according to official CBS statistics approx. 10% of road vehicles are motorbikes)
  • Added test cases for license_plate(), license_plate_motorbike() and license_plate_car()

@fcurella
Copy link
Collaborator

Thank you!

@fcurella fcurella merged commit e267fe1 into joke2k:master Oct 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants