Malay Name Parser: A simple script for parsing complex Malay names into their individual components.
Parses Malay names into 5 components:
- Title
- First name
- Middle names
- Last names
- Suffixes
Install: npm install siapa
An example:
var siapa = require('siapa');
var name = siapa.parse('Dato\' Ir. Dr. Hariadi Hinta')
console.log(name.title, name.first, name.suffixes, name.middle_names, name.last_names)
For linting and testing this project uses Grunt ~0.4.1
, but Grunt is not required to use this parser. Check out the Getting Started guide to learn more about Grunt.
git clone https://github.com/hariadi/siapa.git
cd siapa && npm install
grunt
Thank you.
Many of these name parser logic come from the following repos:
- Javascript version, by John Griffey
- Python version, by Derek Gulbranson
- PHP version, by G. Miernicki
- 2013-11-16 v0.1.2 Add more salutations test
- 2013-06-29 v0.1.1 Add test
- 2013-05-09 v0.1.0 First commit