Skip to content

A simple script for parsing complex Malay names into their individual components.

Notifications You must be signed in to change notification settings

hariadi/siapa-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A simple script for parsing complex Malay names into their individual components.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published