Skip to main content
This page covers the public classes, configuration, response objects, providers, algorithms, and utility functions available in the library.

Core Classes

SpellChecker

The main spell checking class.

SpellCheckerBuilder

Fluent builder for SpellChecker construction.
Example:

ConfigPresets

Pre-configured SpellCheckerConfig instances for common use cases.
Available presets: DEFAULT, FAST, ACCURATE, MINIMAL, STRICT.

Configuration Classes

SpellCheckerConfig

Main configuration class (Pydantic BaseModel).

ValidationLevel

Enum for validation depth.
Note: Validation level is passed to check() and other methods, not as a configuration option.

POSTaggerConfig

POS tagger configuration.

SemanticConfig

Semantic checker configuration.

Response Classes

Response

Result of spell checking.

Error

Base error class.

Provider Classes

DictionaryProvider

Abstract provider interface.
Note: close() is not defined on the base class. It is available on SQLiteProvider to release connection pool resources.

SQLiteProvider

SQLite-based provider.

MemoryProvider

In-memory provider optimized for fast lookups.

Algorithm Classes

SymSpell

Symmetric delete spell checking.

NgramContextChecker

N-gram based context checker.

SemanticChecker

Deep learning based context checker.

Segmenter Classes

DefaultSegmenter

Default text segmenter.

Utility Functions

Text Normalization

Logging Configuration

Exceptions

Exception hierarchy:
MyanmarSpellcheckError (base)
ConfigurationError
InvalidConfigError
DataLoadingError
MissingDatabaseError
ProcessingError
ValidationError
TokenizationError
NormalizationError
ProviderError
ConnectionPoolError
PipelineError
IngestionError
PackagingError
ModelError
ModelLoadError
InferenceError
MissingDependencyError
InsufficientStorageError
CacheError
Key exceptions:

Convenience Functions

check_text()

Quick one-off spell check without constructing a SpellChecker instance:

Internationalization (i18n)

classify_action()

Classify the recommended action for an error based on its type and confidence:
Returns ActionType.AUTO_FIX (safe to apply), ActionType.SUGGEST (show to user), or ActionType.INFORM (advisory only).

Streaming

StreamingChecker

Memory-efficient streaming interface for processing large text files.

StreamingConfig

StreamingStats

ChunkResult

Example:

Module Index

Next Steps