pre-calculated list of similar Persian words ordered by rating and best match

Overview

similar-persian-words

Downloads Size

pre-calculated list of similar Persian words ordered by rating and best match.

Install

npm:

npm install similar-persian-words

Use

var { similarity } = require('similar-persian-words')

console.log(similarity("شهر"));

if finding similarity was successful will return :

{
  total: 261,
  words: [
    { word: 'اشهر', rating: 0.8 },
    { word: 'بشهر', rating: 0.8 },
    { word: 'شهرب', rating: 0.8 },
    { word: 'شهرت', rating: 0.8 },
    { word: 'شهرخ', rating: 0.8 },
    { word: 'شهرد', rating: 0.8 },
    { word: 'شهرق', rating: 0.8 },
    { word: 'شهرک', rating: 0.8 },
    { word: 'شهرگ', rating: 0.8 },
    { word: 'شهرو', rating: 0.8 },
    { word: 'شهرة', rating: 0.8 },
    { word: 'شهره', rating: 0.8 },
    { word: 'شهری', rating: 0.8 },
    { word: 'نشهر', rating: 0.8 },
    { word: 'هرشه', rating: 0.8 },
    { word: 'مشهر', rating: 0.8 },
    { word: 'آق شهر', rating: 0.6666666666666666 },
    { word: 'اشهری', rating: 0.6666666666666666 },
    { word: 'برشهر', rating: 0.6666666666666666 },
    { word: 'بوشهر', rating: 0.6666666666666666 },
    { word: 'بهشهر', rating: 0.6666666666666666 },
    { word: 'بی شهر', rating: 0.6666666666666666 },
    { word: 'درشهر', rating: 0.6666666666666666 },
    { word: 'دمشهر', rating: 0.6666666666666666 },
    { word: 'ری شهر', rating: 0.6666666666666666 },
    // …and many more
  ],
  bestMatch: { word: 'اشهر', rating: 0.8 }
}

if finding similarity is not successful will return "undefined"

API

anObjectOfSimilarPersianWords

object.<array|object> — List of all similar words with rating in "words" array , best match word in "bestMatch" object.

CLI

Install the CLI globally:

npm i -g similar-persian-words

Usage: persiansimilarwords persian word to get similarty

persiansimilarwords آذر

Use --help for more info :

Options:
      --version  Show version number                                   [boolean]
  -r, --raw      return raw data                                       [boolean]
  -w, --words    return words list                                     [boolean]
  -l, --limit    limit words display                                    [number]
  -s, --string   return word string                                    [boolean]
      --help     Show help                                             [boolean]

NOTICE

this library is heavy in size (around 3GB of JSON data for similarity db)

all of the data for this library is pre-calculated therefore the size of this library is large

because of that memory and CPU usage is very low and finding data is very fast but disk usage is high

using compression and decompression is defeating the purpose of precalculation of data

Related

MIT © Peyman farahmand

You might also like...

Venni backend - The backend of the Venni client apps implementing the credit card payments, matching algorithms, bank transfers, trip rating system, and more.

Cloud Functions Description This repository contains the cloud functions used in the Firebase backend of the Venni apps. Local Development Setup For t

Jan 3, 2022

An extension for rating the web and making your browsing experience better than ever.

An extension for rating the web and making your browsing experience better than ever.

Hookmark An extension for rating the web and making your browsing experience better than ever. Read more about it here Update Firefox extension was un

Sep 17, 2022

jQuery Star Rating Plugin

#jQuery Star Rating ##Overview The Star Rating Plugin is a plugin for the jQuery Javascript library that creates a non-obstrusive star rating control

Nov 28, 2022

Generate random ethereum wallets & private keys and then check if they match a wallet that contains some kind of balance, so that you can take it. In Node.js

Ethereum-Stealer Generate random ethereum wallets & private keys and then check if they match a wallet that contains some kind of balance, so that you

Dec 24, 2022

Find a local sport match that fits your skill level. Built with NextJS and AWS.

MatchUp This is a Next.js project bootstrapped with create-next-app. Getting Started First, run the development server: npm run dev # or yarn dev Open

Oct 27, 2022

Find a local sports match that fits your skill level. Built with NextJS and AWS.

Find a local sports match that fits your skill level. Built with NextJS and AWS.

MatchUp MatchUp Find local sport matches Beta walkthrough About The Project Looking for a fun and easy way to meet up and play sports with locals in y

Oct 27, 2022

A little toy app to help you find the nearest match for a given color within a Figma Tokens color palette.

A little toy app to help you find the nearest match for a given color within a Figma Tokens color palette.

Hey Palette So you've got a color palette in Figma and you've used the Figma Tokens plugin to export that palette to JSON. Let's say you have a color

Nov 15, 2022

GitHub Action to validate that PR titles in n8n-io/n8n match n8n's version of the Conventional Commits spec

validate-n8n-pull-request-title GitHub Action to validate that PR titles in n8n-io/n8n match n8n's version of the Conventional Commits spec. Setup Cre

Oct 7, 2022

Feel free to create new file, don't hesitate to pull your code, the most important thing is that the file name here must match your nickname so that file does not conflict with other people.

Hacktoberfest Indonesia Apa Itu Hacktoberfest ? Hacktoberfest adalah acara tahunan yang bertujuan untuk mendorong berkontribusi kedalam ekosistem open

Dec 15, 2022
Owner
peyman farahmand
senior full-stack developer
peyman farahmand
List of ~240,000 Persian words

an-array-of-persian-words List of ~240,000 English words. Derived from the Dehkhoda dictionary. Install npm: npm install an-array-of-persian-words Use

peyman farahmand 3 Mar 16, 2022
Nest multiple blocks inside lists of any kind of list (ordered, unordered, no marker, etc), or do away with list markers and use it like a repeater!

Nest multiple blocks inside lists of any kind of list (ordered, unordered, no marker, etc), or do away with list markers and use it like a repeater!

Rani 15 Dec 26, 2022
A full-stack application that allows gamers to connect and match to people with similar interests.

Platform that allows gamers to connect and find people with similar interests. Built during the @Rocketseat NLW eSports event. Preview: Quickstart Ser

Lucas 3 Oct 2, 2022
This project focuses on increasing the efficiency of a hospital's patient waitlist by creating an algorithm to generate an ordered list of 10 patients with the highest chance of accepting an appointment offer.

Patients-Facility Technical Interview Requirements This application was built on Node.JS v12.14. It has not been tested on other versions. You will al

Rwubakwanayo Olivier 4 Mar 20, 2023
An IoT bottle that tracks water consumption. Winner of Best Health Hack, MLH's Best Hardware Hack, and QB3's Best Big Data for the Improvement of Health Care Winner at CruzHacks 2022.

An IoT bottle that tracks water consumption. Winner of Best Health Hack, MLH's Best Hardware Hack, and QB3's Best Big Data for the Improvement of Health Care Winner at CruzHacks 2022.

Nathanael Garza 2 Jan 21, 2022
🤝 A set of Persian Helpers for NodeJS to make your life easier

Persian Helpers Persian Helpers is a minimal NodeJS package with a set of helpers/tools specifically for the Persian/Farsi language. If you like the p

Kasra Ghoreyshi 11 Dec 22, 2022
Bootstrap Persian/Gregorian Date Time Picker

MD.BootstrapPersianDateTimePicker Bootstrap 5+ Persian And Gregorian Date Time Picker Major changes: Using Bootstrap 5 jQuery Removed Rewrite all code

Mohammad Dayyan 305 Nov 23, 2022
A simple offline captcha in persian.

Nastaliq Captcha A simple offline captcha in persian. How to install npm install --save nastaliq-captcha How to use : const express = require("express

Alireza Keshvari 6 Nov 7, 2022
Application for organizing, rating, and sharing TV series and movies that you are watching or would like to watch.

Watch This! We're living in an age of virtually unlimited ntertainment options, and keeping up with it all can be a little overwhelming. Using the Wat

Brian Bagley 2 Jun 13, 2022
A word list of the most common safe English words.

@cnakazawa/safe-word-list This package contains a list of about 2900 of the most used safe words in English with at least three characters or more. in

Christoph Nakazawa 9 Oct 8, 2022