New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

lexidict

Package Overview
Dependencies
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lexidict

Convert Open English WordNet data to JSON or CSV, creating a structured dictionary of words and meanings.

latest
Source
npmnpm
Version
1.1.1
Version published
Maintainers
0
Created
Source

🚀 LexiDict 📚

LexiDict is a command-line tool that converts Open English WordNet data into JSON or CSV, creating a structured dictionary of words and meanings.

Features

  • Converts Open English WordNet data to JSON or CSV.
  • Provides a dictionary-like structure with word meanings and relationships.
  • Simple command-line interface for easy usage.

How It Works

LexiDict automatically downloads the latest Open English WordNet XML data from https://en-word.net/ when you run the command. There's no need to manually download or manage the source files - just run the command and LexiDict handles the download, parsing, and conversion process for you. The tool caches downloaded data locally to improve performance on subsequent runs.

Installation

Install LexiDict globally using npm:

npm install -g lexidict

Usage

Run LexiDict with the desired format:

Convert WordNet to JSON

lexidict --format json

This will generate a JSON file containing dictionary data.

Convert WordNet to CSV

lexidict --format csv

This will generate a CSV file with structured dictionary entries.

Show Help Menu

lexidict --help

OR

lexidict -h

Displays all available commands and options.

Example Output

JSON Format Example

{
  "w-cat": {
    "meanings": [
      {
        "definition": "A small domesticated carnivorous mammal.",
        "partOfSpeech": "n"
      },
      {
        "definition": "To hoist an anchor to the cathead of a ship.",
        "partOfSpeech": "v"
      }
    ]
  },
  "w-constructor": {
    "meanings": [
      {
        "definition": "A person who builds something.",
        "partOfSpeech": "n"
      }
    ]
  }
}

CSV Format Example

word,meanings
w-cat,"n: A small domesticated carnivorous mammal.; v: To hoist an anchor to the cathead of a ship."
w-constructor,"n: A person who builds something."

Data Source

LexiDict is based on Open English WordNet, which is licensed under the Princeton WordNet License. This tool does not modify the word definitions but restructures them for easier use.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributing

Contributions are welcome! Feel free to open issues or submit pull requests.

Author

Tadeusz Lewandowski

🚀 LexiDict makes it easy to convert WordNet data into structured dictionary formats. Try it out today!

Keywords

wordnet

FAQs

Package last updated on 19 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