2.5.0 • Published 26 days ago

@birchill/jpdict-idb v2.5.0

Weekly downloads
-
License
-
Repository
github
Last release
26 days ago

Usage

NOTE: There are TWO versions of the database:

  • JpdictDatabase which does not allow searching for words by their glosses (e.g. searching for "eat" to find 食べる) or searching for words that contain particular a particular kanji.

    i.e. getWordsWithGloss and getWordsWithKanji will always return an empty result when using this database.

  • JpdictFullTextDatabase which does allow searching for words on gloss or kanji.

Currently you need to decide once when you create the database which version you need. There is no facility to switch between the two.

The reason is that the indices for searching for glosses / kanji are expensive to create and take up disk space, and some applications (e.g. 10ten Japanese Reader) simply don't need them.

Furthermore, hopefully the project is structured such that if you only use JpdictDatabase then after tree-shaking your final bundle should not include all the tokenization / stop word code for generating and querying the gloss indices.

Building

yarn build

Running tests

yarn test

Testing using Firefox / WebKit:

yarn test --browser firefox
yarn test --browser webkit

Publishing

yarn release-it
2.5.0

26 days ago

2.4.0

2 months ago

2.3.2

4 months ago

2.3.0

6 months ago

2.3.1

5 months ago

2.2.1

6 months ago

2.2.0

6 months ago

2.1.2

9 months ago

2.1.1

9 months ago

2.0.2

9 months ago

2.1.3

9 months ago

2.1.0

9 months ago

1.3.0

1 year ago

2.0.1

12 months ago

2.0.0

12 months ago

1.2.2

2 years ago

1.2.0

2 years ago

1.2.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago