Documentation
¶
Overview ¶
Package batch handles batch processing of Bulgarian words from files. It supports reading word lists with optional translations in the format: "bulgarian_word" or "bulgarian_word = english_translation"
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WordEntry ¶
type WordEntry struct {
Bulgarian string
Translation string
// NeedsTranslation indicates if translation from English to Bulgarian is needed
NeedsTranslation bool
// CardType indicates whether this is en-bg or bg-bg card
CardType internal.CardType
}
WordEntry represents a word with optional translation
func ReadBatchFile ¶
ReadBatchFile reads words from a file and returns WordEntry slice Supports formats: - Bulgarian word only: "ябълка" (will be translated to English) - With translation: "ябълка = apple" (both provided, no translation needed) - English only: "= apple" (will be translated to Bulgarian) - Bulgarian-Bulgarian: "word1 == definition" (bg-bg card, double equals)
Click to show internal directories.
Click to hide internal directories.