From bc9859f632d0aad3a1ed2c01d1651c7ababb7cc1 Mon Sep 17 00:00:00 2001 From: Moe Maleki Date: Fri, 26 Sep 2014 14:06:43 -0700 Subject: [PATCH] fix CRLF for mac --- README.md | 31 ++++++++++++----------- bin/README.md | 70 +++++++++++++++++++++++++-------------------------- package.json | 2 +- 3 files changed, 52 insertions(+), 51 deletions(-) diff --git a/README.md b/README.md index 27ed623..c59dcba 100644 --- a/README.md +++ b/README.md @@ -17,21 +17,6 @@ To run spec: jasmine-node validate_spec.js --verbose ## Quick usage -Command-line: -```bash -$ wordpos def git -git - n: a person who is deemed to be despicable or contemptible; "only a rotter would do that"; "kill the rat"; "throw the bum out"; "you cowardly little pukes!"; "the British call a contemptible person a `git'" - -$ wordpos def git | wordpos get --adj -# Adjective 6: -despicable -contemptible -bum -cowardly -little -British -``` Node.js: ```js @@ -49,6 +34,22 @@ wordpos.isAdjective('awesome', function(result){ // true 'awesome' ``` +Command-line: +```bash +$ wordpos def git +git + n: a person who is deemed to be despicable or contemptible; "only a rotter would do that"; "kill the rat"; "throw the bum out"; "you cowardly little pukes!"; "the British call a contemptible person a `git'" + +$ wordpos def git | wordpos get --adj +# Adjective 6: +despicable +contemptible +bum +cowardly +little +British +``` + ### Options ```js diff --git a/bin/README.md b/bin/README.md index c2724a4..53cedb2 100644 --- a/bin/README.md +++ b/bin/README.md @@ -1,6 +1,41 @@ wordpos ======= +## Usage: +```bash +$ wordpos + + Usage: wordpos [options] [word ... | -i | ] + + Commands: + + get get list of words for particular POS + + def lookup definitions + + rand get random words (optionally starting with 'word' ...) + + parse show parsed words, deduped and less stopwords + + stopwords show list of stopwords (valid options are -b and -j) + + Options: + + -h, --help output usage information + -V, --version output the version number + -n, --noun Get nouns + -a, --adj Get adjectives + -v, --verb Get verbs + -r, --adv Get adverbs + -c, --count get counts only (noun, adj, verb, adv, total parsed words) + -b, --brief brief output (all on one line, no headers) + -f, --full full result object + -j, --json full result object as JSON + -i, --file input file + -s, --withStopwords include stopwords (default: stopwords are excluded) + -N, --num number of random words to get +``` + ## Command-line: CLI Version 0.1.6 introduces the command-line interface (./bin/wordpos-cli.js), available as 'wordpos' if installed globally @@ -101,38 +136,3 @@ foot-shaped $ wordpos stopwords -b about after all also am an and another any are as at be because ... ``` - -## Usage: -```bash -$ wordpos - - Usage: wordpos [options] [word ... | -i | ] - - Commands: - - get get list of words for particular POS - - def lookup definitions - - rand get random words (optionally starting with 'word' ...) - - parse show parsed words, deduped and less stopwords - - stopwords show list of stopwords (valid options are -b and -j) - - Options: - - -h, --help output usage information - -V, --version output the version number - -n, --noun Get nouns - -a, --adj Get adjectives - -v, --verb Get verbs - -r, --adv Get adverbs - -c, --count get counts only (noun, adj, verb, adv, total parsed words) - -b, --brief brief output (all on one line, no headers) - -f, --full full result object - -j, --json full result object as JSON - -i, --file input file - -s, --withStopwords include stopwords (default: stopwords are excluded) - -N, --num number of random words to get -``` diff --git a/package.json b/package.json index 1091f1b..548958b 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "author": "Moos ", "keywords": ["natural", "language", "wordnet", "adjectives", "nouns", "adverbs", "verbs"], "description": "wordpos is a set of part-of-speech utilities for Node.js using natural's WordNet module.", - "version": "0.1.12", + "version": "0.1.12-r1", "homepage": "https://github.com/moos/wordpos", "engines": { "node": ">=0.6"