# word-analyzer

> An awesome module that analyze words moephologically

Latest version **1.0.5** (published 2019-01-17) · ISC license · 0 weekly downloads

## Install

```sh
npm install word-analyzer
pnpm add word-analyzer
yarn add word-analyzer
bun add word-analyzer
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2019-01-17 |
| First published | 2019-01-16 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 8.1 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | amanda-hg |
| Maintainers | amanda-hg |
| Keywords | morphologically, word, words, string, morphological, morphology, analyze, analyzer |

## Links

- npm: https://www.npmjs.com/package/word-analyzer
- Repository: https://github.com/amanda-hg/word-analyzer
- Homepage: https://github.com/amanda-hg/word-analyzer#readme
- Issues: https://github.com/amanda-hg/word-analyzer/issues
- npm.io page: https://npm.io/package/word-analyzer

## Dependencies (3)

- [cheerio](https://npm.io/package/cheerio.md) ^1.0.0-rc.2
- [request](https://npm.io/package/request.md) ^2.88.0
- [request-promise](https://npm.io/package/request-promise.md) ^4.2.2

## Alternatives

- [@mce/gif](https://npm.io/package/@mce/gif.md) — 2.6K weekly downloads
- [cleanse](https://npm.io/package/cleanse.md) — 173 weekly downloads
- [str](https://npm.io/package/str.md) — 127 weekly downloads
- [naming](https://npm.io/package/naming.md) — 95 weekly downloads
- [tap-telco-api](https://npm.io/package/tap-telco-api.md) — 19 weekly downloads

## Recent versions

- 1.0.5 (latest) — 2019-01-17
- 1.0.4 — 2019-01-17
- 1.0.3 — 2019-01-17
- 1.0.2 — 2019-01-16
- 1.0.1 — 2019-01-16
- 1.0.0 — 2019-01-16

## README

# word-analyzer

This module morphologically analyze words entered as string.
```js
'programmer' => 'noun'
'you are programming' => {
                            you: 'pronoun', 
                            are: 'verb', 
                            programming: 'noun'
                        }
```
# Usage

It requires the external modules: "request", "request-promise" and "cheerio"
```js
const phrase_analyzer = require('word-analyzer');
```

# Methods

This module has one method:

- analyze: return a string if the input in a only word o an object if it's a phrase

# Example
## analyze
Input:
```js
const phrase_analyzer = require('word-analyzer');

const example1 = () => {
    phrase_analyzer.analyze('dance')
    .then(word => {
        console.log('1) ',word);
    })
    .catch()
}

const example2 = () => {
    phrase_analyzer.analyze('everybody want to program')
    .then(word => {
        console.log('2) ',object)
    })
    .catch()
}

example1()

example2()

```
Output:
```js
1) verb

2) { everybody: 'pronoun',
     want: 'verb',
     to: 'preposition',
     program: 'noun' }
```

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