Skip to content

Commit f475e28

Browse files
author
Maarten
committed
v0.1.2
1 parent 82dab3e commit f475e28

21 files changed

+901
-369
lines changed

cebuano-stemmer.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cebuano-stemmer.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

generate-stemmer/StemmerParser.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import {Affix} from "../src/stemmer/Affix";
55
import {AffixPattern} from "../src/stemmer/AffixPattern";
66

77

8-
const strict = true;
8+
const strictXml = true;
99

1010
export const parseStream = function parse(stream: any) {
1111
return new Promise((resolve, reject) => {
12-
const parseStream = createStream(strict, {});
12+
const parseStream = createStream(strictXml, {});
1313

1414
let stemmer: Stemmer;
1515
let temporaryAffix: Affix;
@@ -75,5 +75,3 @@ export const parseStream = function parse(stream: any) {
7575
}
7676
);
7777
};
78-
79-
export default parseStream;

index.d.ts

+1-11
Original file line numberDiff line numberDiff line change
@@ -1,11 +1 @@
1-
export * from "./ts-compiled-webpack/dictionary/database";
2-
export * from "./ts-compiled-webpack/normalizer/CebuanoNormalizer";
3-
export * from "./ts-compiled-webpack/stemmer/root-word-provider/RootWordProvider";
4-
export * from "./ts-compiled-webpack/stemmer/root-word-provider/known-affixes";
5-
export * from "./ts-compiled-webpack/stemmer/root-word-provider/roots";
6-
export * from "./ts-compiled-webpack/stemmer/Affix";
7-
export * from "./ts-compiled-webpack/stemmer/AffixGroup";
8-
export * from "./ts-compiled-webpack/stemmer/AffixPattern";
9-
export * from "./ts-compiled-webpack/stemmer/Derivation";
10-
export * from "./ts-compiled-webpack/stemmer/Stemmer";
11-
export * from "./ts-compiled-webpack/stemmer/CebuanoStemmer";
1+
export * from "./ts-compiled-webpack/index";

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cebuano-stemmer",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "A stemmer for the Cebuano language spoken in the Philippines",
55
"keywords": [
66
"cebuano",
@@ -41,7 +41,6 @@
4141
"yargs": "latest"
4242
},
4343
"scripts": {
44-
"build": "npm run clean && npm run build:ts && npm run build:cp && node write-package.js && npm run build:min",
4544
"build:min": "webpack -p",
4645
"build:ts": "tsc",
4746
"clean": "rimraf dist",

src/dictionary/database.ts src/dictionary/database-helper.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
import {RootWordProvider} from "../stemmer/root-word-provider/RootWordProvider";
2-
import {roots} from "../stemmer/root-word-provider/roots";
3-
import {Derivation} from "../stemmer/Derivation";
4-
import {normalize} from "../normalizer/CebuanoNormalizer";
1+
import {RootWordProvider} from "./RootWordProvider";
2+
import {roots} from "./roots";
53

64
// const HEAD_ID = "_id";
75
// const HEAD_HEAD = "head";

src/dictionary/roots.ts

+14
Large diffs are not rendered by default.

src/index.ts

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
1-
export * from "./dictionary/database";
1+
export * from "./dictionary/database-helper";
22

33
export * from "./normalizer/CebuanoNormalizer";
44

5-
export * from "./stemmer/root-word-provider/RootWordProvider";
6-
export * from "./stemmer/root-word-provider/known-affixes";
7-
export * from "./stemmer/root-word-provider/roots";
5+
export * from "./dictionary/RootWordProvider";
6+
export * from "./dictionary/known-affixes";
7+
export * from "./dictionary/roots";
88

99
export * from "./stemmer/Affix";
1010
export * from "./stemmer/AffixGroup";
1111
export * from "./stemmer/AffixPattern";
1212
export * from "./stemmer/Derivation";
1313
export * from "./stemmer/Stemmer";
14-
export * from "./stemmer/CebuanoStemmer";
15-
16-
export * from "../stop-words/stop-words";
14+
export * from "./stemmer/CebuanoStemmer";

src/normalizer/CebuanoNormalizer.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import removeDiacritics from "./FoldToAscii";
1+
import {removeDiacritics} from "./FoldToAscii";
22

33
export function normalize(word: string): string {
44
return removeDiacritics(word)
@@ -22,6 +22,4 @@ export function normalize(word: string): string {
2222
.replace(/o/g, "u") // o -> u;
2323
.replace(/e/g, "i") // e -> i
2424
;
25-
}
26-
27-
export default normalize;
25+
}

0 commit comments

Comments
 (0)