2.0.1 • Published 4 years ago
@artur_mkrtchyannnn/metaphone v2.0.1
metaphone
Install
This package is ESM only:
Node 12+ is needed to use it and it must be imported instead of required.
npm:
npm install metaphoneAPI
This package exports the following identifiers: metaphone.
There is no default export.
import {metaphone} from 'metaphone'
metaphone('michael') // => 'MXL'
metaphone('crevalle') // => 'KRFL'
metaphone('Filipowitz') // => 'FLPWTS'
metaphone('Xavier') // => 'SFR'
metaphone('delicious') // => 'TLSS'
metaphone('acceptingness') // => 'AKSPTNKNS'
metaphone('allegrettos') // => 'ALKRTS'With stemmer:
var metaphone = require('metaphone')
var stemmer = require('stemmer')
metaphone(stemmer('acceptingness')) // => 'AKSPTNK'
metaphone(stemmer('allegrettos')) // => 'ALKRT'CLI
Usage: metaphone [options] <words...>
Metaphone implementation
Options:
-h, --help output usage information
-v, --version output version number
Usage:
# output phonetics
$ metaphone considerations detestable
# KNSTRXNS TTSTBL
# output phonetics from stdin
$ echo 'hiccups vileness' | metaphone
# HKKPS FLNS
# with stemmer
$ echo 'vileness' | stemmer | metaphone
# FLRelated
double-metaphone— Double Metaphone implementationsoundex-code— Fast Soundex implementationstemmer— Porter Stemmer algorithmdice-coefficient— Sørensen–Dice coefficientlevenshtein-edit-distance— Levenshtein edit distancesyllable— Syllable count in an English word
License
2.0.1
4 years ago