UNPKG

bilingual-summarizer

Version:

A powerful text summarization package for Arabic and English content with sentiment analysis and topic extraction

20 lines (19 loc) 743 B
import { LanguageDetectionResult } from '../types'; /** * Detects the language of a given text using multiple libraries for improved accuracy * @param text The text to detect the language of * @returns An object with the detected language code and confidence level */ export declare function detectLanguage(text: string): LanguageDetectionResult; /** * Checks if the detected language is Arabic * @param text The text to check * @returns True if the text is detected as Arabic */ export declare function isArabic(text: string): boolean; /** * Gets the language name from a language code * @param langCode The ISO language code * @returns The full language name */ export declare function getLanguageName(langCode: string): string;