https://github.com/maxpou/alphabet
:telescope: another experimental project
https://github.com/maxpou/alphabet
Last synced: over 1 year ago
JSON representation
:telescope: another experimental project
- Host: GitHub
- URL: https://github.com/maxpou/alphabet
- Owner: maxpou
- Created: 2017-10-18T17:08:50.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-14T11:15:33.000Z (over 8 years ago)
- Last Synced: 2025-01-16T02:29:42.791Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 86.9 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Alphabet
[](https://standardjs.com)
## Purpose
Create words based on a language statistics.
The word generated will follow the set statistics:
* if there is 20% chances to get a 'a' after a 'b', then there is 20% chances to get a 'a' after a 'b'
* if there is 20% words with a length of 8, then there is 20% chances to generate a 8 letter word
## How to use it
```bash
node index.js
```
```bash
# Options:
~/alphabet » node index.js --help
Usage: main [options]
Options:
-f, --file [fileName] Define the dataset [fr]
-q, --quantity [number] Words to create [5]
-h, --help output usage information
```
## Example of generated words (with a french set)
*bril*, *bonats*, *dondi*, *andent*, *érus*, *ancilile*, *bonphatis*, *premi*, *ancerein*
## Todo
- [x] Pass the file as argument
- [x] Get more that 1 word (arguments)
- [ ] Handle some random errors
- [ ] Get more realistic words!!!
- [ ] Document code
- [ ] Unit test with Jest