morpheme-match-textlint
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -6,2 +6,13 @@ # Change Log | ||
## [2.0.2](https://github.com/azu/morpheme-match/compare/v2.0.1...v2.0.2) (2019-07-07) | ||
### Bug Fixes | ||
* **textlint:** copy type from morpheme-match ([6e24927](https://github.com/azu/morpheme-match/commit/6e24927)) | ||
## [2.0.1](https://github.com/azu/morpheme-match/compare/v2.0.0...v2.0.1) (2019-07-07) | ||
@@ -8,0 +19,0 @@ |
import { ExpectedDictionary, ExpectedDictionaries } from "morpheme-match-all"; | ||
declare type Token = import("morpheme-match").Token; | ||
declare type ExpectedToken = import("morpheme-match").ExpectedToken; | ||
export declare type Token = { | ||
word_id: number; | ||
word_type: "KNOWN" | "UNKNOWN"; | ||
surface_form: string; | ||
pos: string; | ||
pos_detail_1: string; | ||
pos_detail_2: string; | ||
pos_detail_3: string; | ||
conjugated_type: string; | ||
conjugated_form: string; | ||
basic_form: string; | ||
reading: string; | ||
pronunciation: string; | ||
word_position: number; | ||
}; | ||
export declare type ExpectedTokenAdditional = { | ||
_skippable?: boolean; | ||
}; | ||
export declare type ExpectedToken = Partial<Token> & ExpectedTokenAdditional & { | ||
[index: string]: any; | ||
}; | ||
export declare type ExpectedTokenWithCapture = ExpectedToken & { | ||
@@ -30,3 +49,3 @@ _capture?: string; | ||
}; | ||
export declare const createTextlintMatcher: <T extends ExpectedTokenWithCapture>(options: ReporterOptions<T & Partial<import("morpheme-match").Token> & import("morpheme-match").ExpectedTokenAdditional & { | ||
export declare const createTextlintMatcher: <T extends ExpectedTokenWithCapture>(options: ReporterOptions<T & Partial<Token> & ExpectedTokenAdditional & { | ||
[index: string]: any; | ||
@@ -36,2 +55,1 @@ } & { | ||
}>) => (text: string) => Promise<MatchTextlintResult<T>[]>; | ||
export {}; |
{ | ||
"name": "morpheme-match-textlint", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "morpheme-match for textlint rule.", | ||
@@ -51,3 +51,3 @@ "keywords": [ | ||
"email": "azuciao@gmail.com", | ||
"gitHead": "3db2244de74b77cdfdd14dded7b2822a2cd6d141" | ||
"gitHead": "49d62433939b100bb1d4f1f22df90ec364e1c708" | ||
} |
import {createMatcher as createMathAll, ExpectedDictionary, ExpectedDictionaries} from "morpheme-match-all"; | ||
type Token = import("morpheme-match").Token; | ||
export type Token = { | ||
// 辞書内での単語ID | ||
word_id: number; | ||
// 単語タイプ(辞書に登録されている単語ならKNOWN; 未知語ならUNKNOWN) | ||
word_type: "KNOWN" | "UNKNOWN"; | ||
// 表層形 | ||
surface_form: string; | ||
// 品詞 | ||
pos: string; | ||
// 品詞細分類1 | ||
pos_detail_1: string; | ||
// 品詞細分類2 | ||
pos_detail_2: string; | ||
// 品詞細分類3 | ||
pos_detail_3: string; | ||
// 活用型 | ||
conjugated_type: string; | ||
// 活用形 | ||
conjugated_form: string; | ||
// 基本形 | ||
basic_form: string; | ||
// 読み | ||
reading: string; | ||
// 発音 | ||
pronunciation: string; | ||
// 単語の開始位置 | ||
word_position: number; | ||
}; | ||
type ExpectedToken = import("morpheme-match").ExpectedToken; | ||
export type ExpectedTokenAdditional = { | ||
_skippable?: boolean; | ||
}; | ||
export type ExpectedToken = Partial<Token> & ExpectedTokenAdditional & { | ||
[index: string]: any; | ||
}; | ||
export type ExpectedTokenWithCapture = ExpectedToken & { | ||
@@ -7,0 +41,0 @@ _capture?: string |
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
18660
284