# saymyname

> Lexer for parsing human people name

Latest version **0.1.2** (published 2020-06-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install saymyname
pnpm add saymyname
yarn add saymyname
bun add saymyname
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2020-06-14 |
| First published | 2016-01-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Pierre Maoui |
| Maintainers | poupougnac |
| Keywords | name-splitter, name parser, human name |

## Links

- npm: https://www.npmjs.com/package/saymyname
- Repository: https://github.com/poupougnac/saymyname
- Homepage: https://github.com/poupougnac/saymyname#readme
- Issues: https://github.com/poupougnac/saymyname/issues
- npm.io page: https://npm.io/package/saymyname

## Recent versions

- 0.1.2 (latest) — 2020-06-14
- 0.1.1 — 2020-06-14
- 0.1.0 — 2020-06-14
- 0.0.9 — 2016-08-22
- 0.0.8 — 2016-03-07
- 0.0.7 — 2016-03-04
- 0.0.6 — 2016-02-03
- 0.0.5 — 2016-01-08
- 0.0.1 — 2016-01-06

## README

[![Build Status](https://travis-ci.org/poupougnac/saymyname.svg?branch=master)](https://travis-ci.org/poupougnac/saymyname)

SayMyName lets you split human name (into firstname and name) and aims to return the correct letter case.

## Installation

With npm

```bash
npm install saymyname
```

In a browser
```html
<script type="text/javascript" src="saymyname.js"></script>
```

## Usage
```javascript

// full name constructor
var myName = new SayMyName("jean de la fontaine");

console.log(myName.humanize()); // return "Jean de La Fontaine"
console.log(myName.firstname);  // return "Jean"
console.log(myName.name);      // return "de La Fontaine"

// firstname + name constructor
var myName = new SayMyName("JEAN BAPTISE","POQUELIN");

console.log(myName.humanize()); // return "Jean-Baptiste Poquelin"
console.log(myName.firstname);  // return "Jean-Baptise"
console.log(myName.name);      // return "Poquelin"


```

## Limitations

I tried to catch as many case as possible (specially with nobiliary particle) but human naming is not (read: not at all) a science. Many thanks to you, Wikipedia.

## Contributions

Feel free to contribute

---
_Source: https://npm.io/package/saymyname · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
