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

pinyin-pro

Package Overview
Dependencies
Maintainers
1
Versions
147
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pinyin-pro - npm Package Compare versions

Comparing version 3.20.0-beta.1 to 3.20.0-beta.2

2

package.json
{
"name": "pinyin-pro",
"version": "3.20.0-beta.1",
"version": "3.20.0-beta.2",
"description": "准确率和性能最优异的汉字转拼音库。获取中文拼音、韵母、声母、声调、首字母,支持拼音匹配",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

@@ -33,7 +33,7 @@ interface HtmlOptions {

/**
* @description 是否对"一"和"不"开启变调。默认开启。参考:https://zh.wiktionary.org/wiki/Appendix:%E2%80%9C%E4%B8%80%E2%80%9D%E5%8F%8A%E2%80%9C%E4%B8%8D%E2%80%9D%E7%9A%84%E5%8F%98%E8%B0%83
* @description 是否开启「一」和 「不」字的变调。默认开启。参考:https://zh.wiktionary.org/wiki/Appendix:%E2%80%9C%E4%B8%80%E2%80%9D%E5%8F%8A%E2%80%9C%E4%B8%8D%E2%80%9D%E7%9A%84%E5%8F%98%E8%B0%83
* @value true:开启
* @value false:不开启
*/
inflection?: boolean;
toneSandhi?: boolean;
}

@@ -40,0 +40,0 @@ /**

@@ -53,7 +53,7 @@ interface BasicOptions {

/**
* @description 是否对"一"和"不"开启变调。默认开启。参考:https://zh.wiktionary.org/wiki/Appendix:%E2%80%9C%E4%B8%80%E2%80%9D%E5%8F%8A%E2%80%9C%E4%B8%8D%E2%80%9D%E7%9A%84%E5%8F%98%E8%B0%83
* @description 是否开启「一」和 「不」字的变调。默认开启。参考:https://zh.wiktionary.org/wiki/Appendix:%E2%80%9C%E4%B8%80%E2%80%9D%E5%8F%8A%E2%80%9C%E4%B8%8D%E2%80%9D%E7%9A%84%E5%8F%98%E8%B0%83
* @value true:开启
* @value false:不开启
*/
inflection?: boolean;
toneSandhi?: boolean;
}

@@ -60,0 +60,0 @@ interface AllData {

@@ -22,2 +22,2 @@ import type { SingleWordResult } from '../../common/type';

export declare const middlewareDoubleUnicode: (list: SingleWordResult[]) => SingleWordResult[];
export declare const middlewareInflection: (list: SingleWordResult[], inflection: boolean) => SingleWordResult[];
export declare const middlewareToneSandhi: (list: SingleWordResult[], toneSandhi: boolean) => SingleWordResult[];

@@ -29,5 +29,5 @@ import type { Pattern } from '../common/ac';

export declare const PatternNumberDict: Pattern[];
export declare const inflectionList: string[];
export declare function processInflection(cur: string, pre: string, next: string): string | undefined;
export declare function processInflectionLiao(cur: string, pre: string): "liǎo" | undefined;
export declare const toneSandhiList: string[];
export declare function processToneSandhi(cur: string, pre: string, next: string): string | undefined;
export declare function processToneSandhiLiao(cur: string, pre: string): "liǎo" | undefined;
export declare function processSepecialPinyin(cur: string, pre: string, next: string): string;

Sorry, the diff of this file is too big to display

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