Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

analyze-desumasu-dearu

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

analyze-desumasu-dearu - npm Package Compare versions

Comparing version 2.1.4 to 2.1.5

5

lib/analyze.js
// 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];

8

package.json

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc