UNPKG

bilingual-summarizer

Version:

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

14 lines (13 loc) 564 B
/** * Extracts topics from the given text * @param text The text to extract topics from * @param limit Optional limit for the number of topics to return (default: 5) * @returns An array of extracted topics */ export declare function extractTopics(text: string, limit?: number): string[]; /** * Calculates the difficulty score of the text based on word length, sentence complexity, etc. * @param text The text to analyze * @returns A difficulty score between 0 (easy) and 1 (difficult) */ export declare function calculateDifficulty(text: string): number;