Skip to content

Commit

Permalink
Merge pull request #981 from spencermountain/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
spencermountain committed Nov 11, 2022
2 parents dfaec76 + f15e8ad commit 4b0a75a
Show file tree
Hide file tree
Showing 76 changed files with 949 additions and 192 deletions.
5 changes: 5 additions & 0 deletions README.md
Expand Up @@ -853,6 +853,11 @@ nlp.extend({
- **[Tasking Slack-bot](https://github.com/kevinsuh/toki)** - by Kevin Suh
[[see more]](https://observablehq.com/@spencermountain/compromise-projects)

##### Comparisons
- [Compromise and Spacy](https://observablehq.com/@spencermountain/compromise-and-spacy)
- [Compromise and NLTK](https://observablehq.com/@spencermountain/compromise-and-NLTK)


<!-- spacer -->
<div align="center">
<img height="25px" src="https://user-images.githubusercontent.com/399657/68221862-17ceb980-ffb8-11e9-87d4-7b30b6488f16.png"/>
Expand Down
2 changes: 1 addition & 1 deletion builds/compromise.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion builds/one/compromise-one.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion builds/one/compromise-one.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion builds/three/compromise-three.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion builds/three/compromise-three.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion builds/two/compromise-two.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion builds/two/compromise-two.mjs

Large diffs are not rendered by default.

11 changes: 10 additions & 1 deletion changelog.md
Expand Up @@ -9,17 +9,26 @@ While all _Major_ releases should be reviewed, our only _large_ releases are **v
<!-- #### [planned breaking]
- fix doc.json(0) inconsistency
- fix text() options
- deprecate #Participle for #PastParticiple
- run chunker only when necessary
- cleanup verb+noun metadata in json()
-->

<!-- #### 14.7.1 [Unreleased]
<!-- #### 14.7.2 [Unreleased]
-->

#### 14.7.1
- **[fix]** - concat fix
- **[change]** - tagging fixes
- **[change]** - `{word/tag/sense}` sense-match syntax

#### 14.7.0
- **[new]** - match term id
- **[change]** - tag text by default on .concat('')
- **[change]** - allow modifying term prePunctuation
- **[new]** - .wrap() method
- **[new]** - .isFull() method
- **[new]** - support full `notIf` matches on sweep
- **[fix]** - text params for #953
- **[fix]** - nouns().isSingular() missing
- **[change]** - one-character w/ dash tokenization #977
Expand Down
25 changes: 23 additions & 2 deletions data/lexicon/adjectives/adjectives.js
Expand Up @@ -79,7 +79,6 @@ export default [
'blind',
'beyond',
'good',
'understood',
'substandard',
'on board',
'aboard',
Expand Down Expand Up @@ -576,6 +575,11 @@ export default [
'unruly',
'many',
'sparkly',
'approximately',
'fortunately',
'unfortunately',
'lately',
'ultimately',

// -ry
'legendary',
Expand All @@ -596,6 +600,7 @@ export default [
'auditory',
'statutory',
'sorry',
'hairy',
'uppity',
'guilty',
'woozy',
Expand Down Expand Up @@ -629,6 +634,7 @@ export default [

// -ide
'bona fide',
'bonafide',
// -ate
'affectionate',
'alternate',
Expand All @@ -643,6 +649,21 @@ export default [
'beside',
'alright',
'top notch',
'self sufficient'
'self sufficient',
'middle aged',
'no more',
'ashen',
'scarlet',
'alone',
'homesick',
'longtime',
'bigtime',
'inside',
'outside',
'artsy',
'antsy',
'golden',
'bare',
'subpar',
]

1 change: 1 addition & 0 deletions data/lexicon/adjectives/comparables.js
Expand Up @@ -310,4 +310,5 @@ export default [
'weak',
'white',
'wide',
'stately',
]
1 change: 1 addition & 0 deletions data/lexicon/misc.js
Expand Up @@ -65,4 +65,5 @@ export default {
'hurry up': 'Imperative',
'make sure': 'Imperative',
// 'stand back': 'Imperative'
// 'subpar': 'Adjective'
}
3 changes: 1 addition & 2 deletions data/lexicon/misc/adverbs.js
Expand Up @@ -8,7 +8,6 @@ export default [
'all but',
'all that',
'almost',
'alone',
'already',
'also',
'always',
Expand Down Expand Up @@ -79,7 +78,7 @@ export default [
'thus',
'too',
'totally',
'toward',
// 'toward',
'twice',
'up to',
'upwards of',
Expand Down
1 change: 1 addition & 0 deletions data/lexicon/misc/prepositions.js
Expand Up @@ -48,6 +48,7 @@ export default [
'throughout',
'thru',
'till',
'toward',
'towards',
'unlike',
'until',
Expand Down
2 changes: 2 additions & 0 deletions data/lexicon/nouns/properNouns.js
Expand Up @@ -11,9 +11,11 @@ export default [
'mickey',
'finn',
'missy',
'florence',

// currencies
'nis',
'riel',
'euro',
'iron maiden',
]
8 changes: 8 additions & 0 deletions data/lexicon/nouns/singulars.js
Expand Up @@ -275,6 +275,7 @@ export default [
'aspect',
'prospect',
'insect',
'intellect',
'verdict',
'district',
'free market',
Expand Down Expand Up @@ -404,6 +405,13 @@ export default [
'flower',
'sandwich',
'x ray',
'pig',
'loser',
'time out',
'time off',
'darling',
'dump truck',
'sweetheart',
]


4 changes: 4 additions & 0 deletions data/lexicon/nouns/uncountables.js
Expand Up @@ -243,4 +243,8 @@ export default [
'hunger',
'sushi',
'seating',
'existence',
'make up',
'you guys',
'improv'
]
3 changes: 1 addition & 2 deletions data/lexicon/people/femaleNames.js
Expand Up @@ -589,7 +589,6 @@ export default [
'fien',
'fiona',
'flora',
'florence',
'florencia',
'fozia',
'fran',
Expand Down Expand Up @@ -1500,7 +1499,7 @@ export default [
'sasha',
'savanna',
'savannah',
'scarlet',
// 'scarlet',
'scarlett',
'selena',
'selene',
Expand Down
1 change: 1 addition & 0 deletions data/lexicon/switches/adj-gerund.js
Expand Up @@ -224,6 +224,7 @@ export default [
// prefixes
'resting',
'redefining',
'overpowering'

]

10 changes: 9 additions & 1 deletion data/lexicon/switches/adj-past.js
Expand Up @@ -223,7 +223,15 @@ export default [
'wet',
'worried',
// prefixes
'overlooked'
'overlooked',
'muted',
'burnt',
'understood',
'inflated',
'exaggerated',
'delighted',
'elated',
'confused',
]


Expand Down
18 changes: 18 additions & 0 deletions data/lexicon/switches/noun-verb.js
Expand Up @@ -444,6 +444,7 @@ export default [
'range',
'rank',
'rat',
'read',
'reason',
'recall',
'record',
Expand Down Expand Up @@ -791,4 +792,21 @@ export default [
'ask',
'drone',
'tangle',
'ditch',
'guess',
'temper',
'commit',
'lick',
'capture',
'ground',
'hug',
'rape',
'panic',
'rage',
'parent',
'shot',
'dock',
'manner',
'bitch',
'war',
]
10 changes: 9 additions & 1 deletion data/lexicon/verbs/infinitives.js
Expand Up @@ -703,11 +703,19 @@ export default [

// present participles
'awaken',
'freshen',
'frighten',
'hasten',
'heighten',
'lengthen',
'lessen',
'worsen',
'strengthen',
'sweeten',
'worsen',

'explain',
'occur',
'concur',
'maintain',
'undercut',
]
6 changes: 1 addition & 5 deletions data/lexicon/verbs/participles.js
Expand Up @@ -4,11 +4,7 @@ export default [
'seen',
'flown',
'shown',
'frighten',
'given',
'hasten',
'heighten',
'lessen',
'worsen',
'written',

]
12 changes: 12 additions & 0 deletions data/lexicon/verbs/phrasals.js
Expand Up @@ -86,6 +86,7 @@ export default [
'bring in',
'bring out',
'bring up',
'bring under',
'brush off',
'brush up',
'bubble over',
Expand Down Expand Up @@ -117,6 +118,7 @@ export default [
'call off',
'call on',
'call up',
'call out',
'calm down',
'cancel out',
'carry away',
Expand All @@ -142,6 +144,10 @@ export default [
'chip in',
'clean down',
'clean up',
'close up',
'close off',
'close out',
'close in',
'come apart',
'come around',
'come away',
Expand Down Expand Up @@ -207,6 +213,7 @@ export default [
'fall out',
'fall over',
'fall through',
'fall victim',
'farm out',
'fatten up',
'feed off',
Expand Down Expand Up @@ -286,6 +293,7 @@ export default [
'get up',
'give away',
'give back',
'give birth',
'give down',
'give in',
'give off',
Expand Down Expand Up @@ -419,6 +427,7 @@ export default [
'listen up',
'live off',
'live up',
'live out',
'load down',
'load up',
'lock down',
Expand All @@ -444,6 +453,7 @@ export default [
'make off',
'make out',
'make up',
'make sure',
'man down',
'man up',
'mark down',
Expand Down Expand Up @@ -513,6 +523,7 @@ export default [
'pipe down',
'pipe up',
'play around',
'place under',
'plug in',
'plump down',
'plump up',
Expand Down Expand Up @@ -693,6 +704,7 @@ export default [
'stand up',
'start out',
'start up',
'start off',
'stave off',
'stay up',
'step up',
Expand Down

0 comments on commit 4b0a75a

Please sign in to comment.