UNPKG

@novel-segment/types

Version:
1 lines 1.29 kB
{"version":3,"file":"index.cjs.development.cjs","sources":["../src/index.ts"],"sourcesContent":["\nexport type ArrayTwoOrMore<T> = T[] & {\n\t0: T,\n\t1: T,\n}\n\nexport const enum EnumDictDatabase\n{\n\n\tSYNONYM = 'SYNONYM',\n\tTABLE = 'TABLE',\n\tSTOPWORD = 'STOPWORD',\n\n\t/**\n\t * 字典黑名單 在主字典內刪除此字典內有的條目\n\t */\n\tBLACKLIST = 'BLACKLIST',\n\n\t/**\n\t * 優化器黑名單 會防止部分優化器去組合此字典內的詞\n\t * 例如 人名 自動組合之類\n\t */\n\tBLACKLIST_FOR_OPTIMIZER = 'BLACKLIST_FOR_OPTIMIZER',\n\n\t/**\n\t * 轉換黑名單 動態轉換字詞時會忽略此字典內的詞\n\t */\n\tBLACKLIST_FOR_SYNONYM = 'BLACKLIST_FOR_SYNONYM',\n\n}\n\nexport interface IWord\n{\n\tw: string,\n\t/**\n\t * 詞性\n\t */\n\tp?: number,\n\t/**\n\t * 詞性名稱\n\t */\n\tps?: string,\n\tpp?: string,\n\t/**\n\t * 權重\n\t */\n\tf?: number,\n\t/**\n\t * 开始位置\n\t */\n\tc?: number,\n\t/**\n\t * 合併項目\n\t */\n\tm?: Array<IWord | string>,\n\n\t//convertSynonym?: boolean,\n\t//autoCreate?: boolean,\n\n\t/**\n\t * 代表原生存在於字典內的項目\n\t */\n\ts?: boolean,\n\tos?: boolean,\n}\n"],"names":["EnumDictDatabase"],"mappings":";;;;;;;EAsBCA;AAAAA,EAAAA,gBAAA,CAAA,UAAA,CAAA,GAAA,UAAA,CAAA;;;;;;"}