fix CRLF for mac

This commit is contained in:
Moe Maleki 2014-09-26 14:06:43 -07:00
parent d049be3dac
commit bc9859f632
3 changed files with 52 additions and 51 deletions

View File

@ -17,21 +17,6 @@ To run spec:
jasmine-node validate_spec.js --verbose jasmine-node validate_spec.js --verbose
## Quick usage ## 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: Node.js:
```js ```js
@ -49,6 +34,22 @@ wordpos.isAdjective('awesome', function(result){
// true 'awesome' // 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 ### Options
```js ```js

View File

@ -1,6 +1,41 @@
wordpos wordpos
======= =======
## Usage:
```bash
$ wordpos
Usage: wordpos <command> [options] [word ... | -i <file> | <stdin>]
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 <file> input file
-s, --withStopwords include stopwords (default: stopwords are excluded)
-N, --num <num> number of random words to get
```
## Command-line: CLI ## Command-line: CLI
Version 0.1.6 introduces the command-line interface (./bin/wordpos-cli.js), available as 'wordpos' if installed globally 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 $ wordpos stopwords -b
about after all also am an and another any are as at be because ... about after all also am an and another any are as at be because ...
``` ```
## Usage:
```bash
$ wordpos
Usage: wordpos <command> [options] [word ... | -i <file> | <stdin>]
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 <file> input file
-s, --withStopwords include stopwords (default: stopwords are excluded)
-N, --num <num> number of random words to get
```

View File

@ -3,7 +3,7 @@
"author": "Moos <mooster@42at.com>", "author": "Moos <mooster@42at.com>",
"keywords": ["natural", "language", "wordnet", "adjectives", "nouns", "adverbs", "verbs"], "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.", "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", "homepage": "https://github.com/moos/wordpos",
"engines": { "engines": {
"node": ">=0.6" "node": ">=0.6"