batch

package
v0.8.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2026 License: MIT Imports: 4 Imported by: 0

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

func ReadBatchFile(filename string) ([]WordEntry, error)

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL