Skip to content

Commit

Permalink
bump release
Browse files Browse the repository at this point in the history
  • Loading branch information
spencermountain committed May 3, 2015
1 parent 29e70c1 commit 99b98eb
Show file tree
Hide file tree
Showing 5 changed files with 481 additions and 1,953 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "nlp_compromise",
"main": "./client_side/nlp.js",
"version": "0.3.6",
"version": "0.4.0",
"homepage": "https://github.com/spencermountain/nlp_compromise",
"authors": [
"Spencer Kelly <[email protected]>"
Expand Down
32 changes: 15 additions & 17 deletions client_side/nlp.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! nlp_compromise 0.3.10 by @spencermountain 2015-05-02 MIT */
/*! nlp_compromise 0.4.0 by @spencermountain 2015-05-02 MIT */
var nlp = (function() {
var verb_irregulars = (function() {
var types = [
Expand Down Expand Up @@ -6404,6 +6404,7 @@ var verb_conjugate = (function() {

// console.log(verb_conjugate("swing"))
// console.log(verb_conjugate("walking"))
// console.log(verb_conjugate("overtook"))

//wrapper for verb's methods
var Verb = function(str, next, last, token) {
Expand Down Expand Up @@ -6646,6 +6647,12 @@ var to_comparative = (function() {
return null
}

for (i = 0; i < transforms.length; i++) {
if (str.match(transforms[i].reg)) {
return str.replace(transforms[i].reg, transforms[i].repl)
}
}

if (convertables.hasOwnProperty(str)) {
if (str.match(/e$/)) {
return str + "r"
Expand All @@ -6654,6 +6661,7 @@ var to_comparative = (function() {
}
}


if (irregulars.hasOwnProperty(str)) {
return irregulars[str]
}
Expand All @@ -6665,11 +6673,6 @@ var to_comparative = (function() {
}
}

for (i = 0; i < transforms.length; i++) {
if (str.match(transforms[i].reg)) {
return str.replace(transforms[i].reg, transforms[i].repl)
}
}

for (i = 0; i < matches.length; i++) {
if (str.match(matches[i])) {
Expand Down Expand Up @@ -6751,6 +6754,12 @@ var to_superlative = (function() {
}
}

for (i = 0; i < transforms.length; i++) {
if (str.match(transforms[i].reg)) {
return str.replace(transforms[i].reg, transforms[i].repl)
}
}

if (convertables.hasOwnProperty(str)) {
return generic_transformation(str)
}
Expand All @@ -6769,12 +6778,6 @@ var to_superlative = (function() {
}
}

for (i = 0; i < transforms.length; i++) {
if (str.match(transforms[i].reg)) {
return str.replace(transforms[i].reg, transforms[i].repl)
}
}

for (i = 0; i < matches.length; i++) {
if (str.match(matches[i])) {
return generic_transformation(str)
Expand Down Expand Up @@ -8392,10 +8395,5 @@ if (typeof module !== "undefined" && module.exports) {
// console.log( nlp.pos('she sells seashells by the seashore').sentences[0].negate().text() )
// console.log( nlp.pos('i will slouch').to_past().text() );

//TODAY
// console.log(verb_conjugate("overtake"))
// adjective conjugate("pretty")
// upper-case months and demonyms

return nlp;
})()
2 changes: 1 addition & 1 deletion client_side/nlp.min.js

Large diffs are not rendered by default.

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": "nlp_compromise",
"description": "natural language processing in the browser",
"version": "0.3.10",
"version": "0.4.0",
"repository": {
"type": "git",
"url": "git://github.com/spencermountain/nlp_compromise.git"
Expand Down
Loading

0 comments on commit 99b98eb

Please sign in to comment.