use crate::url_to_text::text::TextExtractor;
use std::error::Error;
pub async fn process(text: &str, extract: bool) -> Result<String, Box<dyn Error + Send + Sync>> {
if extract {
TextExtractor::extract(text, "direct-input").await
} else {
Ok(text.to_string())
}
}