# an-array-of-persian-words

> list of ~240,000 persian words

Latest version **1.0.4** (published 2022-03-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install an-array-of-persian-words
pnpm add an-array-of-persian-words
yarn add an-array-of-persian-words
bun add an-array-of-persian-words
```

Provides the commands `words`, `an-array-of-english-words`.

## 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.4 |
| Published | 2022-03-16 |
| First published | 2022-03-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.7 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Peyman Farahmand |
| Maintainers | pfndesign |
| Keywords | array, list, persian, word, words |

## Links

- npm: https://www.npmjs.com/package/an-array-of-persian-words
- Repository: https://github.com/pfndesign/an-array-of-persian-words
- Homepage: https://github.com/pfndesign/an-array-of-persian-words#readme
- Issues: https://github.com/pfndesign/an-array-of-persian-words/issues
- npm.io page: https://npm.io/package/an-array-of-persian-words

## Recent versions

- 1.0.4 (latest) — 2022-03-16
- 1.0.3 — 2022-03-15
- 1.0.2 — 2022-03-15
- 1.0.1 — 2022-03-15
- 1.0.0 — 2022-03-15

## README

# `an-array-of-persian-words`
[![Downloads][downloads-badge]][downloads]
[![Size][size-badge]][size]

List of ~240,000 English words.
Derived from [the Dehkhoda dictionary][dehkhoda].

## Install

[npm][]:

```sh
npm install an-array-of-persian-words
```

## Use

```js
var words = require('an-array-of-persian-words')

console.log(words.filter(d => /آب/.test(d)))
```

Yields:

```js
[
  'آب',
  'آب آسیا',
  'آب آشنا',
  'آب آلو',
  'آب آمیخته',
  'آب آورد',
  'آب آورده',
  'آب آهک',
  // …and many more
]
```

## API

### `anArrayOfPersianWords`

`Array.<string>` — List of all Persian words, according to dehkhoda dictionary.

## CLI

Install the CLI globally:

```sh
npm i -g an-array-of-persian-words
```

Now run `words` to print all the words to stdout:

```sh
words
```

Use `grep` to filter by pattern:

```sh
words | grep 'آفتاب'
```

Use `egrep` to filter with regular expressions:

```sh
words | egrep '^آب'            # start with 'آب'
words | egrep 'دان$'      # end with 'دان'
words | egrep 'ان?ت$'           # end in 'ان' or 'ت'
```

Use `wc` to find out how many `شهر` words there are:

```sh
words | grep 'شهر' | wc -l
```

Ten random ten-letter words (note: on macOS, do `brew install coreutils` to get
[`gshuf`][shuf]):

```sh
$ words | egrep '^.{10}$' | gshuf | head -10
```
## Related

*   [`persian-words-category`](https://github.com/pfndesign/persian-words-category)
*   [`similar-persian-words`](https://github.com/pfndesign/similar-persian-words)
*   [`persian-words-pronunciation`](https://github.com/pfndesign/persian-words-pronunciation)

[MIT][license] © [Peyman farahmand][author]

<!-- Definition -->

[downloads-badge]: https://img.shields.io/npm/dm/an-array-of-persian-words.svg

[downloads]: https://www.npmjs.com/package/an-array-of-persian-words

[size-badge]: https://img.shields.io/bundlephobia/minzip/an-array-of-persian-words.svg

[size]: https://bundlephobia.com/result?p=an-array-of-persian-words

[npm]: https://docs.npmjs.com/cli/install

[license]: license

[author]: https://www.linkedin.com/in/pfndesign

[dehkhoda]: https://dehkhoda.ut.ac.ir/fa/dictionary

[shuf]: https://en.wikipedia.org/wiki/Shuf

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