jasonpriem / HumanNameParser.php

Returns the parts (leading initial, first, middle, last, suffix) of a name from a string.
MIT License
108 stars 41 forks source link

port to npm/node? #9

Open ralyodio opened 10 years ago

ralyodio commented 10 years ago

It looks like this may handle middle names better than the only package on npmjs.org that does name parsing.

Atroxide commented 10 years ago

Bit of an old issue but I was actually thinking of porting this library to JS. I have a project that currently uses this but I am needing a client-side version with 100% matching parsing so in a couple weeks when I get some free time I might look into it.

I'll reply to this issue if I do end up porting it.

ralyodio commented 10 years ago

Checkout humanparser on npm

Atroxide commented 10 years ago

Thanks! Question though, how similar is human.parseName() to this library? I am basically needing a 100% port of this library with the exact same parsing rules.

ralyodio commented 10 years ago

YOu can see the unit tests here: https://github.com/chovy/humanparser/blob/master/test/index.js