Bug 585

Summary: Use OO implementation for estimating text difficulty level and user vocabulary level
Product: EnglishPal Reporter: Hui Lan <lanhui>
Component: 改进建议Assignee: Hui Lan <lanhui>
Status: CONFIRMED ---    
Severity: enhancement    
Priority: Normal    
Version: 0.1   
Hardware: PC   
OS: Mac OS   

Description Hui Lan 2025-03-06 09:02:46 CST
Define class ArticleVocabularyLevel and class UserVocabularyLevel to estimate English  text difficulty level and user vocabulary level, respectively.

Create a new file called vocabulary.py and define the above two classes in it. 


These classes are going to replace the functions text_difficulty_level() and user_difficulty_level() in difficulty.py.

Do not modify difficulty.py.

-Hui