Skip to content

Latest commit

 

History

History
29 lines (15 loc) · 859 Bytes

File metadata and controls

29 lines (15 loc) · 859 Bytes

henkan


henkan / convertJawiktionaryAsync

Function: convertJawiktionaryAsync()

convertJawiktionaryAsync(stream): Promise<JaWiktionaryEntry[]>

Defined in: utils.ts:1275

Converts and filters a ja.wiktionary.org JSONL dump (async)

The dump file needs to be converted from a jawiktionary-latest-pages-articles.xml.bz2 file from https://dumps.wikimedia.org/jawiktionary/latest/ using wiktextract.

Parameters

stream

ReadStream

A JSONL dump file stream

Returns

Promise<JaWiktionaryEntry[]>

An array containing only the Japanese entries