does this work with english cvs ? 
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.metrics.pairwise import cosine_similarity




cv_vectorizer = TfidfVectorizer(stop_words="english", max_features=5000)
reference_cvs = [
    # 🔹 Software Engineering CVs
    "Education: Bachelor's degree in Computer Science from MIT. Experience: 5 years at Google as a Full Stack Developer. Skills: Python, Java, React, SQL. Projects: Developed a recommendation engine for e-commerce. Certifications: AWS Certified Solutions Architect.",
    "Education: MSc in Artificial Intelligence from Stanford. Experience: 4 years in machine learning research at OpenAI. Skills: Deep learning, TensorFlow, PyTorch, NLP, computer vision. Projects: Built a chatbot using GPT models.",
    "Experience: Software Engineer at Facebook. Developed microservices in Django, optimized database queries, and led a team of 5 engineers. Skills: Backend development, API design, CI/CD, Kubernetes.",
    
    # 🔹 Data Science & AI CVs
    "Education: Master's in Data Science from Harvard. Experience: 3 years as a Data Analyst at Microsoft. Skills: Python, SQL, Tableau, Big Data, statistical modeling. Projects: Developed predictive models for sales forecasting. Publications: Research paper on data clustering.",
    "Machine Learning Engineer with 6 years of experience in deep learning and AI solutions. Skills: Reinforcement learning, GANs, distributed computing, cloud deployment on AWS/GCP. Experience in fintech and healthcare AI applications.",
    
    # 🔹 Cybersecurity CVs
    "Certified Ethical Hacker (CEH). 4 years of experience in penetration testing and network security. Skills: Kali Linux, Metasploit, SIEM, SOC analysis. Experience: Conducted vulnerability assessments for Fortune 500 companies.",
    "Cybersecurity Analyst with CISSP certification. Experience: Worked on incident response, forensic analysis, and threat intelligence at IBM Security. Skills: Firewall management, IDS/IPS, cloud security, Python scripting.",
    
    # 🔹 Business & Marketing CVs
    "MBA Graduate from Wharton Business School. 5 years in digital marketing at Amazon. Expertise: SEO, Google Ads, content strategy, and brand management. Increased conversion rates by 25% through targeted ad campaigns.",
    "Marketing Specialist with expertise in social media management and influencer marketing. Experience: Managed 10+ international campaigns, achieving 200% growth in engagement. Skills: Meta Ads, TikTok marketing, email automation.",
    
    # 🔹 Engineering CVs
    "Mechanical Engineer with expertise in CAD modeling (SolidWorks, AutoCAD). Designed HVAC systems for high-rise buildings. Experience: 7 years in manufacturing industry. Skills: Thermodynamics, material science, product design.",
    "Electrical Engineer specialized in embedded systems and IoT. Designed PCB layouts and worked with microcontrollers (Arduino, Raspberry Pi, STM32). Developed home automation solutions using MQTT and cloud integration.",
    
    # 🔹 Finance & Accounting CVs
    "Chartered Financial Analyst (CFA). 8 years of experience in investment banking. Skills: Risk management, financial modeling, stock market analysis. Experience: Worked at JPMorgan and led M&A deals worth $500M.",
    "Certified Public Accountant (CPA) with 6 years in tax auditing and compliance. Experience: Deloitte, PwC. Skills: Financial reporting, SOX compliance, cost accounting. Led a team of junior auditors.",
    
    # 🔹 Healthcare & Medical CVs
    "Registered Nurse with 5 years of experience in ICU and emergency care. Skills: Patient monitoring, EHR documentation, medication administration. Certifications: ACLS, BLS. Experience: Worked at Mayo Clinic.",
    "Pharmacist with expertise in drug formulation and patient counseling. Experience: Managed pharmaceutical inventory and provided consultations for chronic disease management. Skills: Clinical pharmacy, drug interactions, regulatory compliance.",
    
    # 🔹 Legal CVs
    "Corporate Lawyer with a specialization in contract law and intellectual property rights. Experience: Represented clients in high-profile M&A transactions. Skills: Legal drafting, compliance, arbitration, litigation support.",
    "Criminal Defense Attorney with 10 years of courtroom experience. Defended clients in over 100+ felony cases. Skills: Case analysis, negotiation, trial advocacy, legal research.",
    
    # 🔹 Education & Teaching CVs
    "High School Math Teacher with 8 years of experience. Skills: Algebra, calculus, SAT preparation, classroom management. Certifications: Teaching License, AP Math Instructor.",
    "University Professor in Physics with a PhD in Quantum Mechanics. Experience: 15+ years in academia. Publications: 10+ research papers in peer-reviewed journals. Taught undergraduate and graduate-level physics courses.",
    
    # 🔹 Creative & Design CVs
    "Graphic Designer with expertise in Adobe Creative Suite (Photoshop, Illustrator, After Effects). Designed branding materials for 50+ clients. Skills: UI/UX design, typography, motion graphics.",
    "Video Editor and Filmmaker with 7 years of experience in post-production. Worked on feature films and commercials. Skills: Premiere Pro, DaVinci Resolve, color grading, VFX."
]

reference_matrix = cv_vectorizer.fit_transform(reference_cvs)

def is_valid_cv(text: str) -> bool:
    text_vector = cv_vectorizer.transform([text])
    similarity_scores = cosine_similarity(text_vector, reference_matrix).flatten()
    max_similarity = max(similarity_scores)
    print(f"📊 CV Similarity Score: {max_similarity}")
    return max_similarity > 0.5