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

morph-it-helper

Package Overview
Dependencies
Maintainers
1
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

morph-it-helper

Helper functions on an included database derived from morph-it (Free Morphological Lexicon for the Italian Language)

latest
npmnpm
Version
5.4.0
Version published
Weekly downloads
75
-60.32%
Maintainers
1
Weekly downloads
 
Created
Source

morph-it-helper

morph-it provides an extensive morphological resource for the Italian language. It is dual-licensed free software and can be redistributed it and/or modified under the terms of the under the Creative Commons Attribution ShareAlike 2.0 License and the GNU Lesser General Public License.

morph-it-helper very simple Node.js module that contains:

  • morph-it derived json files
  • a helper class to get data from these json files

The derived json files content remains under the same Creative Commons Attribution ShareAlike 2.0 License and the GNU Lesser General Public License licence.

Installation

npm install morph-it-helper

Usage

let MorphItHelper = require('morph-it-helper').MorphItHelper;

let mih = new MorphItHelper();

// uomo
console.log(mih.getNoun('uomini'));

// antico
console.log(mih.getAdj('antiche'));

The json files are created from morph-it via the createDb script.

Current helpers:

  • getNoun takes a lemma (string) or flex form (string) of a noun and returns its root. uomini => uomo. null when not found. When it is a past participle, it will not return the lemma (the infinitive verb) but its masculine singular form: educati => educati (and not educare)
  • getAdj takes a lemma (string) or a flex form (string) of an adjective and returns its root. antiche => antico. null when not found.

Todo

Enrich features.

dependencies and licences

The code is under Apache 2.0 license.

The derived json files content remains under the same Creative Commons Attribution ShareAlike 2.0 License and the GNU Lesser General Public License licence.

Keywords

Italian

FAQs

Package last updated on 27 Dec 2024

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