# @datagica/parse-names

> Extract names from text

Latest version **0.0.8** (published 2018-06-05) · GPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install @datagica/parse-names
pnpm add @datagica/parse-names
yarn add @datagica/parse-names
bun add @datagica/parse-names
```

## 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.0.8 |
| Published | 2018-06-05 |
| First published | 2016-01-17 |
| Weekly downloads | 0 |
| License | GPL-3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 1.3 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Julian Bilcke |
| Maintainers | datagica |

## Links

- npm: https://www.npmjs.com/package/@datagica/parse-names
- Repository: https://github.com/datagica/parse-names
- Homepage: https://github.com/datagica/parse-names#readme
- Issues: https://github.com/datagica/parse-names/issues
- npm.io page: https://npm.io/package/@datagica/parse-names

## Dependencies (1)

- [@datagica/parse-entities](https://npm.io/package/@datagica/parse-entities.md) ^0.2.7

## Recent versions

- 0.0.8 (latest) — 2018-06-05
- 0.0.7 — 2018-06-02
- 0.0.6 — 2017-07-08
- 0.0.5 — 2016-04-04
- 0.0.4 — 2016-02-18
- 0.0.3 — 2016-02-08
- 0.0.2 — 2016-02-06
- 0.0.1 — 2016-01-17

## README

# Parse Names

If a name is missing or incorrect you can create a pull request

## Installation

    $ npm i @datagica/parse-names

## Usage

Example:

```javascript
await parse('did you watch romeo et juliette?')
```

Output:

```json
    [
      {
        "ngram": "romeo",
        "value": {
          "name": "romeo",
          "gender": [
            "m"
          ],
          "culture": [
            "italian"
          ],
          "id": "romeo"
        },
        "score": 1,
        "position": {
          "sentence": 0,
          "word": 3,
          "begin": 14,
          "end": 19
        }
      },
      {
        "ngram": "juliette",
        "value": {
          "name": "juliette",
          "gender": [
            "f"
          ],
          "culture": [
            "french"
          ],
          "id": "juliette"
        },
        "score": 1,
        "position": {
          "sentence": 0,
          "word": 5,
          "begin": 23,
          "end": 31
        }
      }
    ]
```


## TODO

- FIX julián: there is a conflict with "julian" when both keys are in the
dataset

- FIX names by searching for � and replace
by the corresponding entry in prenoms.csv

- some name has been disabled because they look like common words
for instance 'read'
(search for comments in the database.js, symbols `/` or `*`)
in the future we might try to still match them, using a database of last names

- Add more names, using data from U.S. Census Bureau http://deron.meranda.us/data/

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