Skip to content

Commit

Permalink
12.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
spencermountain committed Nov 28, 2019
1 parent efb3a93 commit 23b5780
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 10 deletions.
20 changes: 17 additions & 3 deletions builds/compromise.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion builds/compromise.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion builds/compromise.min.js

Large diffs are not rendered by default.

20 changes: 17 additions & 3 deletions builds/compromise.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3098,7 +3098,7 @@ var _01Tokenizer = {
fromJSON: fromJSON
};

var _version = '12.0.0-rc3';
var _version = '12.0.0';

var _data = {
"Comparative": "true¦better",
Expand Down Expand Up @@ -8456,7 +8456,7 @@ var methods$4 = Object.assign({}, _01Utils$1, _02Accessors, _03Match, _04Tag, _0

var methods$5 = {}; // allow helper methods like .adjectives() and .adverbs()

var arr = [['terms', '.'], ['hyphenated', '@hasHyphen .'], ['adjectives', '#Adjective'], ['hashTags', '#HashTag'], ['emails', '#Email'], ['emoji', '#Emoji'], ['emoticons', '#Emoticon'], ['atMentions', '#AtMention'], ['urls', '#Url'], ['adverbs', '#Adverb'], ['pronouns', '#Pronoun'], ['money', '#Money'], ['conjunctions', '#Conjunction'], ['prepositions', '#Preposition']];
var arr = [['terms', '.'], ['hyphenated', '@hasHyphen .'], ['adjectives', '#Adjective'], ['hashTags', '#HashTag'], ['emails', '#Email'], ['emoji', '#Emoji'], ['emoticons', '#Emoticon'], ['atMentions', '#AtMention'], ['urls', '#Url'], ['adverbs', '#Adverb'], ['pronouns', '#Pronoun'], ['conjunctions', '#Conjunction'], ['prepositions', '#Preposition']];
arr.forEach(function (a) {
methods$5[a[0]] = function (n) {
var m = this.match(a[1]);
Expand Down Expand Up @@ -8484,6 +8484,18 @@ methods$5.phoneNumbers = function (n) {

return m;
};
/** money + currency pair */


methods$5.money = function (n) {
var m = this.match('#Money #Currency?');

if (typeof n === 'number') {
m = m.get(n);
}

return m;
};
/** return all cities, countries, addresses, and regions */


Expand Down Expand Up @@ -10429,7 +10441,9 @@ var fixValue = function fixValue(doc) {

val.match('#Value [#PresentTense]').tag('Plural', 'value-presentTense'); //money

val.match('#Value+ #Currency').tag('Money', 'value-currency').lastTerm().tag('Unit', 'money-unit');
var m = val.match('#Value+ #Currency');
m.lastTerm().tag('Unit', 'money-unit');
m.match('#Value+').tag('Money', 'value-currency');
} //5 kg.


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"author": "Spencer Kelly <[email protected]> (http://spencermounta.in)",
"name": "compromise",
"description": "natural language processing in the browser",
"version": "12.0.0-rc3",
"version": "12.0.0",
"main": "./builds/compromise.js",
"unpkg": "./builds/compromise.min.js",
"module": "./builds/compromise.mjs",
Expand Down
2 changes: 1 addition & 1 deletion src/_version.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = '12.0.0-rc3'
module.exports = '12.0.0'

0 comments on commit 23b5780

Please sign in to comment.