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

wordnets

v1.0.2

Published

![](assets/logo.png)

Downloads

10

Readme

wordnets

Wordnets is a package which makes Princeton University's Wordnet and Wordnet Bahasa available as one gzip package. It merged the en-wordnet and id-wordnet repos, which are now archived.

About

Princeton University defines the WordNet as

WordNet® is a large lexical database of English. Nouns, verbs, adjectives and adverbs are grouped into sets of cognitive synonyms (synsets), each expressing a distinct concept. Synsets are interlinked by means of conceptual-semantic and lexical relations. The resulting network of meaningfully related words and concepts can be navigated with the browser. WordNet is also freely and publicly available for download. WordNet's structure makes it a useful tool for computational linguistics and natural language processing.

Inspired by Princeton WordNet and the Global WordNet Grid, the team at Wordnet Bahasa decided to create a large, freely available, semantic dictionary of the Malay languages (Malaysian and Indonesian)

Getting started

We use bun for this project.

curl -fsSL https://bun.sh/install | bash
bun install
bun test

Where did you find this?

The latest version of the Princeton Wordnet can be found at the website. There are links to both the 3.0 version and the 3.1 version.

The latest version of the Bahasa Wordnet can be found at their website which is hosted on SourceForge. You can find more information about the project here.

Is this credible?

WordNet is probably one of the most credible sources of lexical data in english on the internet right now. If you would like to try it out for yourself, please go here.

In their own works, the creators of Bahasa Wordnet say this:

Disclaimer: We estimate that this release contains errors in as many as 5–10% of entries. We decided to initially spend more effort in increasing the cover than in checking each entry. As we translate the glosses and sense tag text, we expect to fix many of the errors. We also welcome feedback.

This means that not everything can be used, but the ones which can be are very clearly identified. The documentation shares this

Y = hand checked and good O = automatic high quality (good) All others can be ignored, if you're looking for quality output only

If you would like to try it out for yourself, please go here.

Are there things that are missing

Yes, there are other files which I have completely ignored so far. Standoff Files and Old Versions have been completely skipped. I will not be adding them till I can find a use case for it, if you have one, please share.

Please raise an issue if you find something is incorrect.

How do I actually use this data?

The Parser for wordnet DB files will be in a separate repository. I did this because there are other significant pieces of work which follow the specifications set up by Wordnet (like the Open MultiLingual Wordnet) and the parser would be able to utilize all of those to provide multi-lingual support. You can try the lana school dictionary for examples on how to parse this data in node.js.

How to I understand the data structures

The file format used for the bahasa wordnet is synset\tlang\tgoodness\tlemma. synset is the offset-pos from Princeton wordnet 3.0.

  • Language:
    • B (Bahasa = msa);
    • I (Indonesian = ind);
    • M (Malay = zsm)
  • Goodness (or Quality)
    • Y = hand checked and good
    • O = automatic high quality (good)
    • M = automatic medium quality (ok) - should be ignored
    • L = automatic, probably bad (low) - should be ignored
    • X = hand checked and bad - should be ignored

The data structure for the Princeton project for english defined in these two documents

  • wndb, which talks about index._ and data._ files
  • wninput, which talks about the lexicographer file format and the word syntax

This is released under which license?

The complete license for Wordnet can be found on their website and on this repo

Credits