Documentation

AnkiDeckImportService
in package

FinalYes

Creates LWT terms from a deck the user built in Anki (issue #228).

This is the "seed my known words" path: rather than reclassifying thousands of words by hand while reading, the user points LWT at a deck they already study and LWT infers each word's status from Anki's own scheduling data.

Distinct from ApkgImportService, which merges an LWT-exported file back into the terms it came from. That one matches on lwt- guids and updates; this one has no guids to match and only ever creates.

Table of Contents

Constants

MAX_TERM_LENGTH  : mixed = 250
`words.WoText` is varchar(250).
SAMPLE_SIZE  : mixed = 8
How many created terms to show back in the summary.

Properties

$reader  : ForeignApkgReader
$words  : WordCrudService

Methods

__construct()  : mixed
default()  : self
import()  : DeckImportResult
cleanFieldValue()  : string
translationFor()  : string

Constants

SAMPLE_SIZE

How many created terms to show back in the summary.

private mixed SAMPLE_SIZE = 8

Properties

Methods

cleanFieldValue()

private cleanFieldValue(string $value) : string
Parameters
$value : string
Return values
string
On this page

Search results