Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/words/levenmorpher
Morph one word into another, one letter at a time
https://github.com/words/levenmorpher
en english fun game levenshtein morph word
Last synced: 1 day ago
JSON representation
Morph one word into another, one letter at a time
- Host: GitHub
- URL: https://github.com/words/levenmorpher
- Owner: words
- License: mit
- Created: 2014-10-05T07:40:16.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2020-02-14T08:32:23.000Z (over 4 years ago)
- Last Synced: 2024-11-07T08:17:15.015Z (5 days ago)
- Topics: en, english, fun, game, levenshtein, morph, word
- Language: JavaScript
- Homepage:
- Size: 19.5 KB
- Stars: 18
- Watchers: 5
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# levenmorpher
[![Build][build-badge]][build]
[![Coverage][coverage-badge]][coverage]
[![Downloads][downloads-badge]][downloads]
[![Size][size-badge]][size]A JavaScript function and command-line tool that morphs one word into another,
one letter-change at a time.It uses [a very liberal English word list][list].
It might be nice to use something less permissive to avoid really obscure words
that basically no one’s ever heard of.## Install
[npm][]:
```sh
npm install levenmorpher
```## API
```js
var levenmorpher = require('levenmorpher')console.log(levenmorpher('ruby', 'node'))
```Yields:
```js
['ruby', 'rube', 'robe', 'rode', 'node']
```## CLI
```txt
Usage: levenmorpher [options]Morph one word into another, one letter at a time
Options:
-h, --help output usage information
-v, --version output version numberUsage:
# output distance
$ levenmorpher ruby node
ruby
rube
robe
rode
node
```## License
[MIT][license] © [Zeke Sikelianos][author]
[build-badge]: https://img.shields.io/travis/words/levenmorpher.svg
[build]: https://travis-ci.org/words/levenmorpher
[coverage-badge]: https://img.shields.io/codecov/c/github/words/levenmorpher.svg
[coverage]: https://codecov.io/github/words/levenmorpher
[downloads-badge]: https://img.shields.io/npm/dm/levenmorpher.svg
[downloads]: https://www.npmjs.com/package/levenmorpher
[size-badge]: https://img.shields.io/bundlephobia/minzip/levenmorpher.svg
[size]: https://bundlephobia.com/result?p=levenmorpher
[license]: license
[author]: http://zeke.sikelianos.com
[npm]: https://www.npmjs.com
[list]: https://www.npmjs.org/package/an-array-of-english-words