Skip to content

Commit

Permalink
Introduce the random animal generator machine
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Dzialocha committed Jul 12, 2017
1 parent 61b0515 commit 18386d2
Show file tree
Hide file tree
Showing 8 changed files with 11,225 additions and 59 deletions.
60 changes: 1 addition & 59 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,59 +1 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

node_modules
44 changes: 44 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,46 @@
# random-animal-name-generator

It's a random animal name generator!

```js
const generateRandomAnimalName = require('animal-name-generator')
const animalName = generateRandomAnimalName()
console.log(animalName)
```

With funny animal names!

```
Wistful wildcat
Low-budget llama
Grudging giraffe
Knowing kangaroo
Cantankerous canary
Midterm mountain goat
Keyed koala
Blessed bat
Journalistic jackal
Bungling baboon
Newest newt
Illustrative ibex
Comely cat
Envious ewe
Widen weasel
Risque rat
Dread dromedary
```

## Corpora

Adjectives and animal names are taken from the [https://github.com/dariusk/corpora](Corpora) project.

## Development

Clone the repository and install all dependencies:

```
git clone [email protected]:adzialocha/random-animal-name-generator.git
cd random-animal-name-generator
npm install
npm run test
```
Loading

0 comments on commit 18386d2

Please sign in to comment.