npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

camb-dict

v1.0.0

Published

Unofficial cambridge dictionary api

Downloads

11

Readme

CambDict

Unofficial cambridge dictionary api.

Installation

$ npm i camb-dict

Example

Get Meaning

const CambDict = require("camb-dict");
const dictionary = new CambDict.Dictionary();

dictionary.meaning("dictionary")
    .then(console.log)
    .catch(console.error);

Response

{
  word: 'dictionary',
  meaning: 'a book that contains a list of words in alphabetical order and explains their meanings, or gives…',
  pronounciation: 'ˈdɪk.ʃən.ər.i',
  type: 'NOUN',
  examples: [
    'I recently heard a radio presenter refer to dictionaries as babble-babble.',
    'The most common results, then, are books that are something like dictionaries, something like encyclopedias and, often, something like cabinets of curiosities.',
    'The divergence can most easily be seen if we compare the definitions of abduction in some recent dictionaries of linguistics and of philosophy.',
    'Since its (activity) meaning is predictable, the supine nominal is seldom listed in dictionaries, and when it is listed, it is not polysemous.',
    'Events are simply property lists or dictionaries; they can have named properties whose values are arbitrary.',
    'We can distinguish between this kind of understanding and the kind of understanding that involves interpretation manuals, dictionaries, inferences and explanations.',
    'Conventional orthography does not systematically represent distinctions in syllabicity like those illustrated in (5), and standard dictionaries ignore them.',
    'The success of this technique depends heavily on the compatibility between the two tag dictionaries being used.',
    'Many sense inventories have been taken from traditional paper-based (and from machine-readable) dictionaries.',
    'Electronic dictionaries covering almost the entire vocabulary are being developed for different languages.',
    "In some instances, the program was used creatively, in combination with external tools such as the users' own dictionaries, knowledge of other languages, or teachers.",
    'The three most crucial explicit lexical instruction and learning strategies are acquiring decontextualised lexis, using dictionaries and inferring from context.',
    "In chap. 5, data confirm the functions of c'est-à-dire as identified in dictionaries.",
    'Japanese grammar dictionaries and reference books have various different systems of wakachigaki.',
    'The annotated bilingual corpus is used in our translation aid system that integrates bilingual corpus, mono-lingual corpus and hand-compiled dictionaries.'
  ],
  audio: [
    {
      type: 'audio/mpeg',
      url: 'https://dictionary.cambridge.org/media/english/uk_pron/u/ukd/ukdia/ukdiaph030.mp3'
    },
    {
      type: 'audio/mpeg',
      url: 'https://dictionary.cambridge.org/media/english/us_pron/d/dic/dicti/dictionary.mp3'
    },
    {
      type: 'audio/mpeg',
      url: 'https://dictionary.cambridge.org/media/english/us_pron/d/dic/dicti/dictionary.mp3'
    },
    {
      type: 'audio/ogg',
      url: 'https://dictionary.cambridge.org/media/english/uk_pron_ogg/u/ukd/ukdia/ukdiaph030.ogg'
    },
    {
      type: 'audio/ogg',
      url: 'https://dictionary.cambridge.org/media/english/us_pron_ogg/d/dic/dicti/dictionary.ogg'
    },
    {
      type: 'audio/ogg',
      url: 'https://dictionary.cambridge.org/media/english/us_pron_ogg/d/dic/dicti/dictionary.ogg'
    }
  ]
}

Get Pronounciation

const CambDict = require("camb-dict");
const dictionary = new CambDict.Dictionary();

dictionary.pronounciation("dictionary")
    .then(console.log)
    .catch(console.error);

Response

{
  word: 'dictionary',
  audio: [
    {
      type: 'audio/mpeg',
      url: 'https://dictionary.cambridge.org/media/english/uk_pron/u/ukd/ukdia/ukdiaph030.mp3'
    },
    {
      type: 'audio/mpeg',
      url: 'https://dictionary.cambridge.org/media/english/us_pron/d/dic/dicti/dictionary.mp3'
    },
    {
      type: 'audio/ogg',
      url: 'https://dictionary.cambridge.org/media/english/uk_pron_ogg/u/ukd/ukdia/ukdiaph030.ogg'
    },
    {
      type: 'audio/ogg',
      url: 'https://dictionary.cambridge.org/media/english/us_pron_ogg/d/dic/dicti/dictionary.ogg'
    }
  ]
}

Join My Discord