siapa

A simple script for parsing malay names.

npm install siapa
6 downloads in the last week
11 downloads in the last month

siapa Build Status

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

Quick start

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)

Contributing

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.

  1. git clone https://github.com/hariadi/siapa.git
  2. cd siapa && npm install
  3. grunt

Thank you.

Credit

Many of these name parser logic come from the following repos:

Release History

  • 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
npm loves you