🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

cambridge-dictionary-api

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cambridge-dictionary-api

API for Cambridge Dictionary

3.0.3
latest
npm
Version published
Weekly downloads
12
-42.86%
Maintainers
0
Weekly downloads
 
Created
Source

cambridge-dictionary-api

npm license npm downloads

Description

A powerful yet lightweight Node.js package for fetching word definitions, pronunciations and usage examples from the Cambridge Dictionary. Perfect for language learning apps, AI-driven assistants, and NLP projects.

Installation

npm install cambridge-dictionary-api

Usage

import { fetchDictionaryWord } from 'cambridge-dictionary-api';

const result = await fetchDictionaryWord('abandon');
console.log(result);

📖 Example

{
  "word": "abandon",
  "dialects": {
    "us": {
      "audio": "https://dictionary.cambridge.org/us/media/english/us_pron/a/aba/aband/abandon.mp3",
      "phonetic": "/əˈbæn.dən/"
    },
    "uk": {
      "audio": "https://dictionary.cambridge.org/us/media/english/uk_pron/u/uka/uka__/uka____013.mp3",
      "phonetic": "/əˈbæn.dən/"
    }
  },
  "definitions": [
    {
      "definition": "to leave a place, thing, or person, usually forever:",
      "partOfSpeech": "verb",
      "level": "B2",
      "examples": [
        "We had to abandon the car.",
        "By the time the rebel troops arrived, the village had already been abandoned.",
        "As a baby he was abandoned by his mother.",
        "We were sinking fast, and the captain gave the order to abandon ship."
      ]
    },
    {
      "definition": "to stop doing an activity before you have finished it:",
      "partOfSpeech": "verb",
      "level": "C1",
      "examples": [
        "The game was abandoned at halftime because of the poor weather conditions.",
        "They had to abandon their attempt to climb the mountain.",
        "The party has now abandoned its policy of unilateral disarmament."
      ]
    }
  ],
  "derivedForms": {
    "noun": ["abandonment"]
  }
}

Author

Vladyslav Braslavskyi GitHub

License

Licensed under the MIT License - see the LICENSE file for details.

Keywords

cambridge

FAQs

Package last updated on 17 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts