pub use service::LanguageProcessingService;
mod service;
#[derive(Debug, thiserror::Error)]
pub enum LanguageProcessingError {
#[error("Language detection failed: {0}")]
DetectionFailed(String),
#[error("Dictionary not found for language: {0}")]
DictionaryNotFound(String),
#[error("Text correction failed: {0}")]
CorrectionFailed(String),
#[error("Unsupported language: {0}")]
UnsupportedLanguage(String),
}
#[derive(Debug, Clone)]
pub struct LanguageProcessingResult {
pub original_text: String,
pub corrected_text: String,
pub detected_language: Option<String>,
pub correction_confidence: f32,
}