All Projects → forzagreen → n2words

forzagreen / n2words

Licence: MIT license
Convert numerical numbers to written numbers, in 25+ languages.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to n2words

Low Resource Languages
Resources for conservation, development, and documentation of low resource (human) languages.
Stars: ✭ 247 (+461.36%)
Mutual labels:  natural-language
fuzzychinese
A small package to fuzzy match chinese words
Stars: ✭ 50 (+13.64%)
Mutual labels:  natural-language
automation-for-humans
Converts English statements to automation.
Stars: ✭ 67 (+52.27%)
Mutual labels:  natural-language
watson-multimedia-analyzer
WARNING: This repository is no longer maintained ⚠️ This repository will not be updated. The repository will be kept available in read-only mode. A Node app that use Watson Visual Recognition, Speech to Text, Natural Language Understanding, and Tone Analyzer to enrich media files.
Stars: ✭ 23 (-47.73%)
Mutual labels:  natural-language
linguistic-datasets-portuguese
Linguistic Datasets for Portuguese: Lista de conjuntos de dados linguísticos para língua portuguesa com licença flexíveis: banco de dados, lista de palavras, sinônimos, antônimos, dicionário temático, tesauro, linked data, semântica, ontologia e representação de conhecimento
Stars: ✭ 46 (+4.55%)
Mutual labels:  natural-language
LangageLinotte
Code source officiel du langage de programmation Linotte - Langage de programmation en français simple créé dans le but de permettre aux enfants et aux personnes n'ayant pas une connaissance approfondie de l’informatique d’apprendre la programmation facilement.
Stars: ✭ 29 (-34.09%)
Mutual labels:  natural-language
Retext Keywords
plugin to extract keywords and key-phrases
Stars: ✭ 239 (+443.18%)
Mutual labels:  natural-language
buzzwords
List of (possible) English buzzword words
Stars: ✭ 51 (+15.91%)
Mutual labels:  natural-language
fountain
Natural Language Data Augmentation Tool for Conversational Systems
Stars: ✭ 113 (+156.82%)
Mutual labels:  natural-language
nalcos
Search Git commits in natural language
Stars: ✭ 50 (+13.64%)
Mutual labels:  natural-language
levenshtein-edit-distance
Levenshtein edit distance
Stars: ✭ 59 (+34.09%)
Mutual labels:  natural-language
double-metaphone
Fast Double Metaphone algorithm
Stars: ✭ 70 (+59.09%)
Mutual labels:  natural-language
watson-document-classifier
Augment IBM Watson Natural Language Understanding APIs with a configurable mechanism for text classification, uses Watson Studio.
Stars: ✭ 41 (-6.82%)
Mutual labels:  natural-language
LibN3L
LibN3L: A light-weight neural network package for natural language
Stars: ✭ 81 (+84.09%)
Mutual labels:  natural-language
TextFeatureSelection
Python library for feature selection for text features. It has filter method, genetic algorithm and TextFeatureSelectionEnsemble for improving text classification models. Helps improve your machine learning models
Stars: ✭ 42 (-4.55%)
Mutual labels:  natural-language
Soulvercore
A powerful Swift framework for evaluating mathematical expressions
Stars: ✭ 245 (+456.82%)
Mutual labels:  natural-language
weasels
List of (possible) English weasel words
Stars: ✭ 32 (-27.27%)
Mutual labels:  natural-language
aprenda-python
Aprendizado, dicas e projetos sobre Python
Stars: ✭ 22 (-50%)
Mutual labels:  natural-language
hedges
List of (possible) English hedge words
Stars: ✭ 39 (-11.36%)
Mutual labels:  natural-language
parallel-corpora-tools
Tools for filtering and cleaning parallel and monolingual corpora for machine translation and other natural language processing tasks.
Stars: ✭ 35 (-20.45%)
Mutual labels:  natural-language

n2words

Node CI Coverage Status npm npm

n2words is a library that converts a numerical number into a written number. We have support for multiple languages (25 and growing) and our package is lightweight, modular and has no dependencies.

How To

n2words(123)   // 'one hundred and twenty-three'
n2words(-1.5)  // 'minus one point five'

n2words(123, {lang: 'fr'})  // 'cent vingt-trois'
n2words(123, {lang: 'es'})  // 'ciento veintitrés'
n2words(123, {lang: 'ar'})  // 'مائة و ثلاثة و عشرون'

Install

npm install n2words

n2words is also available on jsDelivr.

Usage

ESM

import n2words from 'n2words'

// Source file
import n2words from 'n2words/lib/n2words.mjs'

// Individual languages (recommended)
import n2wordsEN from 'n2words/lib/i18n/EN.mjs'

CommonJS

var n2words = require('n2words')

// Dynamic Import (source files)
import('n2words/lib/n2words.mjs').then(n2words => {
    // Available via "default" method
    n2words.default(100)
})

// Individual languages
import('n2words/lib/i18n/EN.mjs').then(n2wordsEN => {
    n2wordsEN.default(100)
})

Browser

<script src="n2words.js"></script>

Features

  • Cardinal numbers
  • Decimal numbers
  • Negative numbers

Supported Languages

  • en (English, default)
  • ar (Arabic)
  • cz (Czech)
  • dk (Danish)
  • de (German)
  • es (Spanish)
  • fr (French)
  • fa (Farsi)
  • he (Hebrew)
  • hr (Croatian)
  • hu (Hungarian)
  • id (Indonesian)
  • it (Italian)
  • ko (Korean)
  • lt (Lithuanian)
  • lv (Latvian)
  • nl (Dutch)
  • no (Norwegian)
  • pl (Polish)
  • pt (Portuguese)
  • ru (Russian)
  • sr (Serbian)
  • tr (Turkish)
  • uk (Ukrainian)
  • zh (Chinese)

Contributing

You can help by adding new languages or by improving existing ones. Also, reporting issues, verifying the correctness of unit tests or adding more test cases is extremely helpful.

All help is welcome!

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].