Coder Social home page Coder Social logo

electricwizard1988 / licence-gen Goto Github PK

View Code? Open in Web Editor NEW
4.0 0.0 11.0 10 KB

Generate fake UK Driving Licence numbers.

Home Page: https://electricwizard1988.github.io/licence-gen

HTML 22.23% JavaScript 63.68% CSS 14.10%
javascript css3 html5 beginner junior generator driving-license-card

licence-gen's People

Contributors

electricwizard1988 avatar jpgcc avatar

Stargazers

 avatar  avatar  avatar  avatar

licence-gen's Issues

Surnames starting with "Mac"

Any surname starting with Mac should be handled as if the "a" weren't there. This is meant to remove issues with spelling of Mac vs Mc, but applies to any surname that happens to begin with those three letters. Examples:

  • McDonald: MCDON
  • MacDonald: MCDON
  • Macintosh: MCINT
  • less intuitively, Macedo (portuguese surname, unrelated with the "Mac/Mc" prefix): MCEDO

First name initials

The two characters in the driving licence number for first name are supposed to contain the initials of the first two given names (with a 9 in the absence of enough if those)

No provision for gender

The way the month turns into the respective digits in the license number depends on the bearer's gender: if that is Female, then the month number is incremented by 50.

This is currently not taken into account, resulting in female names like Angela having "male" DL numbers.

Surnames with non-A-Z characters

Two categories:

  • accented characters
  • space/punctuations.

Examples of realistic, problematic inputs:

  1. Surnames

Mão de Ferro
Expected: MAODE
Observed: MÃO D

O'Leary
Expected: OLEAR
Observed: O'LEA

  1. Given names

Ágata
Expected: A
Observed: Á

(There's another issue with given names, but I'll create a separate issue for that.)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.