analyze-desumasu-dearu
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -14,6 +14,2 @@ // LICENSE : MIT | ||
var ObjectAssign = require("object.assign"); | ||
var find = require("array-find"); | ||
var getTokenizer = require("kuromojin").getTokenizer; | ||
@@ -127,3 +123,3 @@ /** | ||
var postTokens = allTokens.slice(indexOfTargetToken + 1); | ||
return find(postTokens, function (token) { | ||
return postTokens.find(function (token) { | ||
// 接続、末尾なので切る | ||
@@ -178,3 +174,3 @@ if (PUNCTUATION.test(token["surface_form"])) { | ||
*/ | ||
token: ObjectAssign({}, token) | ||
token: Object.assign({}, token) | ||
}; | ||
@@ -181,0 +177,0 @@ }; |
@@ -14,3 +14,3 @@ { | ||
}, | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "文の敬体(ですます調)、常体(である調)を解析", | ||
@@ -50,5 +50,3 @@ "main": "lib/analyze.js", | ||
"dependencies": { | ||
"array-find": "^1.0.0", | ||
"kuromojin": "^1.4.0", | ||
"object.assign": "^4.1.0" | ||
"kuromojin": "^2.0.0" | ||
}, | ||
@@ -55,0 +53,0 @@ "prettier": { |
// LICENSE : MIT | ||
"use strict"; | ||
const ObjectAssign = require("object.assign"); | ||
const find = require("array-find"); | ||
const getTokenizer = require("kuromojin").getTokenizer; | ||
@@ -93,3 +91,3 @@ /** | ||
const postTokens = allTokens.slice(indexOfTargetToken + 1); | ||
return find(postTokens, token => { | ||
return postTokens.find(token => { | ||
// 接続、末尾なので切る | ||
@@ -136,3 +134,3 @@ if (PUNCTUATION.test(token["surface_form"])) { | ||
*/ | ||
token: ObjectAssign({}, token) | ||
token: Object.assign({}, token) | ||
}; | ||
@@ -139,0 +137,0 @@ }; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1
36224
403
+ Addedkuromojin@2.1.1(transitive)
- Removedarray-find@^1.0.0
- Removedobject.assign@^4.1.0
- Removedarray-find@1.0.0(transitive)
- Removedcall-bind@1.0.7(transitive)
- Removeddefine-data-property@1.1.4(transitive)
- Removeddefine-properties@1.2.1(transitive)
- Removedes-define-property@1.0.0(transitive)
- Removedes-errors@1.3.0(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedget-intrinsic@1.2.4(transitive)
- Removedgopd@1.0.1(transitive)
- Removedhas-property-descriptors@1.0.2(transitive)
- Removedhas-proto@1.0.3(transitive)
- Removedhas-symbols@1.0.3(transitive)
- Removedhasown@2.0.2(transitive)
- Removedkuromojin@1.5.1(transitive)
- Removedobject-keys@1.1.1(transitive)
- Removedobject.assign@4.1.5(transitive)
- Removedset-function-length@1.2.2(transitive)
Updatedkuromojin@^2.0.0