analyze-desumasu-dearu
Advanced tools
Comparing version 2.1.4 to 2.1.5
// LICENSE : MIT | ||
"use strict"; | ||
// This RegExp are based of https://github.com/recruit-tech/redpen/blob/master/redpen-core/src/main/java/cc/redpen/validator/sentence/JapaneseStyleValidator.java | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -9,3 +10,3 @@ value: true | ||
exports.analyzeDearu = analyzeDearu; | ||
var DEARU_PATTERN = /のだが|ないかと|してきた|であるから/g; | ||
var DEARU_PATTERN = /のだが|ないかと|であるから/g; | ||
var DEARU_END_PATTERN = /(だ|である|った|ではない|ないか|しろ|しなさい|いただきたい|いただく|ならない|あろう|られる)。/; | ||
@@ -75,3 +76,2 @@ | ||
} | ||
/** | ||
@@ -84,3 +84,2 @@ * `text` の常体(である調)について解析します | ||
*/ | ||
function analyzeDearu(text) { | ||
@@ -87,0 +86,0 @@ var options = arguments.length <= 1 || arguments[1] === undefined ? { analyzeConjunction: true } : arguments[1]; |
@@ -14,3 +14,3 @@ { | ||
}, | ||
"version": "2.1.4", | ||
"version": "2.1.5", | ||
"description": "文の敬体(ですます調)、常体(である調)を解析。", | ||
@@ -36,4 +36,6 @@ "main": "lib/analyze.js", | ||
"devDependencies": { | ||
"babel": "^5.8.23", | ||
"espower-babel": "^3.3.0", | ||
"babel-cli": "^6.5.1", | ||
"babel-plugin-add-module-exports": "^0.1.2", | ||
"babel-preset-es2015": "^6.5.0", | ||
"espower-babel": "^4.0.1", | ||
"mocha": "^2.3.3", | ||
@@ -40,0 +42,0 @@ "power-assert": "^1.1.0" |
// LICENSE : MIT | ||
"use strict"; | ||
// This RegExp are based of https://github.com/recruit-tech/redpen/blob/master/redpen-core/src/main/java/cc/redpen/validator/sentence/JapaneseStyleValidator.java | ||
const DEARU_PATTERN = /のだが|ないかと|してきた|であるから/g; | ||
const DEARU_PATTERN = /のだが|ないかと|であるから/g; | ||
const DEARU_END_PATTERN = /(だ|である|った|ではない|ないか|しろ|しなさい|いただきたい|いただく|ならない|あろう|られる)。/; | ||
@@ -82,2 +82,2 @@ | ||
return retDearu.concat(retDearuEnd) | ||
} | ||
} |
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
167
14975
6