Skip to content

Commit

Permalink
Move file to internal directory; update repository field
Browse files Browse the repository at this point in the history
  • Loading branch information
mwhirls committed Jan 29, 2024
1 parent b5f5939 commit 696c51c
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 9 deletions.
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
"dev": "rollup --config --watch",
"prepublish": "npm run clean && npm run lint && npm run test && npm run build"
},
"author": "",
"repository": {
"type": "git",
"url": "https://github.com/mwhirls/bunsetsu.git"
},
"license": "MIT",
"devDependencies": {
"@rollup/plugin-commonjs": "^25.0.7",
Expand All @@ -44,4 +47,4 @@
"dependencies": {
"kuromoji": "^0.1.2"
}
}
}
2 changes: 1 addition & 1 deletion rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default [
output: [{ file: "dist/index.bundle.d.ts", format: "es" }],
plugins: [
dts(),
del({ hook: "buildEnd", targets: ['dist/*.d.ts', 'dist/ipadic'] })
del({ hook: "buildEnd", targets: ['dist/*.d.ts', 'dist/internal'] })
]
}
];
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export * from "./details.js";
export * from "./segmenter.js";
export * from "./word.js";
export * from "./token.js";
2 changes: 1 addition & 1 deletion src/details.ts → src/internal/details.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { IpadicFeatures } from "kuromoji";
import { PartOfSpeech, SymbolType } from "./token.js";
import { PartOfSpeech, SymbolType } from "../token.js";

export enum DetailsType {
Suffix = '接尾',
Expand Down
2 changes: 1 addition & 1 deletion src/ipadic/segmenter.ts → src/internal/segmenter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import kuromoji, { IpadicFeatures } from "kuromoji";
import { Segmenter } from "../segmenter.js";
import { PartOfSpeech, ConjugatedForm, ConjugatedType } from "../token.js";
import { Sentence, Word } from "../word.js";
import { IpadicPOSDetails } from "../details.js";
import { IpadicPOSDetails } from "./details.js";
import { IpadicConjugation, IpadicNode, IpadicSymbol } from "./token.js";
import { IpadicSentence, IpadicWord } from "./word.js";

Expand Down
2 changes: 1 addition & 1 deletion src/ipadic/token.ts → src/internal/token.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { IpadicFeatures } from "kuromoji";
import { ConjugatedForm, ConjugationDetail, DetailType, PartOfSpeech, SymbolDetail, SymbolType, TokenDetail } from "../token.js";
import { IpadicPOSDetails } from "../details.js";
import { IpadicPOSDetails } from "./details.js";

export class IpadicNode {
pos: PartOfSpeech;
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/segmenter.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import buildSegmenter from "./ipadic/segmenter.js";
import buildSegmenter from "./internal/segmenter.js";
import { Sentence, Word } from "./word.js";

export interface Segmenter {
Expand Down
2 changes: 1 addition & 1 deletion src/token.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// string literals from kuromoji (Mecab IPADIC)
export enum PartOfSpeech {
Filler = 'フィラー', // 「あのー」「えーと」
Filler = 'フィラー',
Interjection = '感動詞',
Symbol = '記号',
iAdjective = '形容詞',
Expand Down

0 comments on commit 696c51c

Please sign in to comment.