-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkyorotypes.go
37 lines (35 loc) · 1.21 KB
/
kyorotypes.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package main
// Options tells Kyoro how to help you.
type Options struct {
// The Japanese input phrase to generate cards for.
// This can be a single Kanji, a grammer point, a clause
// phrase, or anything else.
InputPhrase string
// The deck to place new cards in
DeckName string
// The card model to submit new notes with.
// The model must contain the following fieleds:
// - "japanese"
// - "reading"
// - "english"
ModelName string
// If true, a card for each found sentence will be created
// (up to MaxSentences), where the Japanese sentence is on the front,
// and the meanings and readings on the back
// If false, a card with only the input phrase on the front will be created
// and multiple Japanese example sentences with readings using the phrase
// input phrase on the back
SentencesOnFrontMode bool
// If true, no English reading will be placed on the back of the
// generated card.
MonoligualMode bool
// The maximum number of sentences to pull for the input term.
MaxSentences int
// When true, no confirmation dialogs will appear and any sentences
// pulled will be added as cards unequivocally.
SilentMode bool
}
// Kyoro is the driver.
type Kyoro interface {
Run(options Options) bool
}