Skip to content

Commit

Permalink
Merge pull request #665 from spencermountain/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
spencermountain authored Jan 10, 2020
2 parents 5163649 + ad0271f commit 2715792
Show file tree
Hide file tree
Showing 82 changed files with 2,520 additions and 1,168 deletions.
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,18 @@ sudo: false
language: node_js

node_js:
- "6"
- '6'
- lts/*

cache:
directories:
- node_modules

before_install:
- npm install -g typescript ts-node

install: npm install

script: npm run testb
script:
- npm run testb
- npm run test:types
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ doc.if('the #Adjective of times').text()
```

```js
if (doc.has('^simon says #Verb+')) {
return doc.match('#Verb .*').text() //'fire the lazer ..'
if (doc.has('simon says #Verb')) {
return true
}
```

Expand Down Expand Up @@ -499,7 +499,7 @@ These are some helpful extensions:
- **[.adjectives().json()](https://observablehq.com/@spencermountain/compromise-adjectives)** - overloaded output with adjective metadata
- **[.adjectives().conjugate()](https://observablehq.com/@spencermountain/compromise-adjectives)** - return all conjugated forms of this adjective
- **[.adjectives().toSuperlative()](https://observablehq.com/@spencermountain/compromise-adjectives)** - convert `quick` to `quickest`
- **[.adjectives().toComparative()](https://observablehq.com/@spencermountain/compromise-adjectives)** - convert `quick` to `quickest`
- **[.adjectives().toComparative()](https://observablehq.com/@spencermountain/compromise-adjectives)** - convert `quick` to `quicker`
- **[.adjectives().toAdverb()](https://observablehq.com/@spencermountain/compromise-adjectives)** - convert `quick` to `quickly`
- **[.adjectives().toVerb()](https://observablehq.com/@spencermountain/compromise-adjectives)** - convert `quick` to `quicken`
- **[.adjectives().toNoun()](https://observablehq.com/@spencermountain/compromise-adjectives)** - convert `quick` to `quickness`
Expand All @@ -511,8 +511,8 @@ These are some helpful extensions:
- **[.dates()](https://observablehq.com/@spencermountain/compromise-dates)** - find dates like `June 8th` or `03/03/18`
- **[.dates().json()](https://observablehq.com/@spencermountain/compromise-dates)** - overloaded output with date metadata
- **[.dates().format('')](https://observablehq.com/@spencermountain/compromise-dates)** - convert the dates to specific formats
- **[.dates().toShortForm('')](https://observablehq.com/@spencermountain/compromise-dates)** - convert 'Wednesday' to 'Wed', etc
- **[.dates().toLongForm('')](https://observablehq.com/@spencermountain/compromise-dates)** - convert 'Feb' to 'February', etc
- **[.dates().toShortForm()](https://observablehq.com/@spencermountain/compromise-dates)** - convert 'Wednesday' to 'Wed', etc
- **[.dates().toLongForm()](https://observablehq.com/@spencermountain/compromise-dates)** - convert 'Feb' to 'February', etc

##### Numbers

Expand Down Expand Up @@ -566,10 +566,10 @@ this plugin creates a wrapper around the default sentence objects.
- **[.paragraphs()](https://observablehq.com/@spencermountain/compromise-paragraphs)** - return groups of sentences
- **[.paragraphs().json()](https://observablehq.com/@spencermountain/compromise-paragraphs)** - output metadata for each paragraph
- **[.paragraphs().sentences()](https://observablehq.com/@spencermountain/compromise-paragraphs)** - go back to a regular Doc object
- **[.paragraphs().terms()](https://observablehq.com/@spencermountain/compromise-paragraphs)** -
- **[.paragraphs().eq()](https://observablehq.com/@spencermountain/compromise-paragraphs)** -
- **[.paragraphs().first()](https://observablehq.com/@spencermountain/compromise-paragraphs)** -
- **[.paragraphs().last()](https://observablehq.com/@spencermountain/compromise-paragraphs)** -
- **[.paragraphs().terms()](https://observablehq.com/@spencermountain/compromise-paragraphs)** - return all individual terms
- **[.paragraphs().eq()](https://observablehq.com/@spencermountain/compromise-paragraphs)** - get the nth paragraph
- **[.paragraphs().first()](https://observablehq.com/@spencermountain/compromise-paragraphs)** - get the first n paragraphs
- **[.paragraphs().last()](https://observablehq.com/@spencermountain/compromise-paragraphs)** - get the last n paragraphs
- **[.paragraphs().match()](https://observablehq.com/@spencermountain/compromise-paragraphs)** -
- **[.paragraphs().not()](https://observablehq.com/@spencermountain/compromise-paragraphs)** -
- **[.paragraphs().if()](https://observablehq.com/@spencermountain/compromise-paragraphs)** -
Expand Down Expand Up @@ -635,6 +635,7 @@ this plugin creates a wrapper around the default sentence objects.
- **[Microservice Recipe](https://eventn.com/recipes/text-parsing-with-nlp-compromise)** - by Eventn
- **[Building Text-Based Games](https://killalldefects.com/2019/09/24/building-text-based-games-with-compromise-nlp/)** - by Matt Eland
- **[Fun with javascript in BigQuery](https://medium.com/@hoffa/new-in-bigquery-persistent-udfs-c9ea4100fd83#6e09)** - by Felipe Hoffa
- - **[Natural Language Processing... in the Browser???](https://dev.to/charlesdlandau/natural-language-processing-in-the-browser-52hj)** - by Charles Landau

##### Talks:

Expand Down Expand Up @@ -756,9 +757,8 @@ this plugin creates a wrapper around the default sentence objects.
-   **[reText](https://github.com/wooorm/retext)** - very impressive [text utilities](https://github.com/wooorm/retext/blob/master/doc/plugins.md) in javascript
-   **[jsPos](https://code.google.com/archive/p/jspos/)** - javascript build of the time-tested Brill-tagger
-   **[spaCy](https://spacy.io/)** - speedy, multilingual tagger in C/python
-   **[Prose](https://github.com/jdkato/prose/)** - quick tagger in Go by Joseph Kato

<img height="25px" src="https://user-images.githubusercontent.com/399657/68221862-17ceb980-ffb8-11e9-87d4-7b30b6488f16.png"/>

<b>MIT</b>

<div align="right">by <a href="https://spencermounta.in/">spencermountain</a></div>
Loading

0 comments on commit 2715792

Please sign in to comment.