Add extract_raw_text function