# wordreference

> A Node solution for retrieving wordreference translations

Latest version **1.1.1** (published 2025-01-25) · ISC license · 0 weekly downloads

## Install

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

## Health

**Score 35/100 (D)** — status: maintenance-mode.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2025-01-25 |
| First published | 2023-03-03 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 19.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Adam Thomas Howard |
| Maintainers | howardah |
| Keywords | wordreference, translation, dictionary |

## Links

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

## Dependencies (2)

- [axios](https://npm.io/package/axios.md) ^1.3.4
- [cheerio](https://npm.io/package/cheerio.md) ^1.0.0-rc.12

## Alternatives

- [messageformat](https://npm.io/package/messageformat.md) — 329.7K weekly downloads
- [@mintlify/scraping](https://npm.io/package/@mintlify/scraping.md) — 294.8K weekly downloads
- [@mintlify/previewing](https://npm.io/package/@mintlify/previewing.md) — 209.5K weekly downloads
- [@mintlify/prebuild](https://npm.io/package/@mintlify/prebuild.md) — 209.5K weekly downloads
- [@mintlify/link-rot](https://npm.io/package/@mintlify/link-rot.md) — 206.3K weekly downloads

## Recent versions

- 1.1.1 (latest) — 2025-01-25
- 1.1.0 — 2023-03-10
- 1.0.8 — 2023-03-06
- 1.0.7 — 2023-03-04
- 1.0.6 — 2023-03-04
- 1.0.5 — 2023-03-04
- 1.0.4 — 2023-03-03
- 1.0.3 — 2023-03-03
- 1.0.2 — 2023-03-03
- 1.0.1 — 2023-03-03
- 1.0.0 — 2023-03-03

## README

# wordreference
A Node solution for retrieving wordreference translations

`wordreference` exports a singles function called `defineWord` which asynchronously returns a translation from wordreference.

### Example

```ts
import { defineWord } from "wordreference";

const definition = await defineWord("fish", "English-French");

```

#### Example Output:
```json
{
    "inputWord": "fish",
    "sections": [
        {
            "title": "Principales traductions",
            "translations": [
                {
                    "word": {
                        "word": "fish, plural: fish, fishes",
                        "pos": "n"
                    },
                    "definition": "aquatic animal",
                    "meanings": [
                        {
                            "word": "poisson",
                            "pos": "nm",
                            "sense": "animal"
                        }
                    ],
                    "examples": [
                        {
                            "phrase": "My son has a pet fish.",
                            "translations": [
                                "Mon fils a un poisson."
                            ]
                        }
                    ]
                },
                ...
            ]
        },
        {
            "title": "Traductions supplémentaires",
            "translations": [...]
        },
        {
            "title": "Verbes à particule",
            "translations": [...]
        },
        {
            "title": "Formes composées",
            "translations": [...]
        }
    ],
    "audioLinks": [
        "https://www.wordreference.com/audio/en/us/us/en034319.mp3",
        "https://www.wordreference.com/audio/en/uk/general/en034319.mp3",
        "https://www.wordreference.com/audio/en/uk/rp/en034319.mp3",
        "https://www.wordreference.com/audio/en/Irish/en034319.mp3",
        "https://www.wordreference.com/audio/en/scot/en034319.mp3",
        "https://www.wordreference.com/audio/en/us/south/en034319.mp3",
        "https://www.wordreference.com/audio/en/Jamaica/en034319.mp3"
    ]
}
```


### Dependencies

* [Axios](https://github.com/axios/axios)
* [Cheerio](https://github.com/cheeriojs/cheerio)

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