A Python library for checking common errors in multiple-choice questions (MCQs)
Project description
AI Q Insights
This library checks for common errors in multiple-choice questions (MCQs), including ambiguity, unequal option lengths, and duplicate questions.
Installation
You can install the library via pip:
pip install aiq_insight
# import
from aiq_insights import MCQ, MCQChecker
# Sample MCQs
mcq1 = MCQ(
question_text="What is the capital of France?",
options=["Paris", "London", "Berlin", "Rome"],
correct_option_index=0
)
mcq2 = MCQ(
question_text="Paris is the capital of which country?",
options=["France", "Germany", "Italy", "Italy"],
correct_option_index=0
)
# Initialize checker
aiq_insights = MCQChecker()
# Analyze individual questions
result1 = aiq_insights.analyze_question(mcq1)
result2 = aiq_insights.analyze_question(mcq2)
print("Question 1 Analysis:", result1)
print("Question 2 Analysis:", result2)
# Analyze question set for duplicates
result_set = aiq_insights.analyze_question_set([mcq1, mcq2])
print("Question Set Analysis:", result_set)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aiq_insights-0.1.2.tar.gz
(4.1 kB
view details)
File details
Details for the file aiq_insights-0.1.2.tar.gz.
File metadata
- Download URL: aiq_insights-0.1.2.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5255e571dd832a59a0059c58e85f8b38ce7f791a35d9de42f076de142c2ebe30
|
|
| MD5 |
e7e7d7702e302eeb80fbb4c60176ff84
|
|
| BLAKE2b-256 |
8d1e036d6ab68677cead46fc17721327f8887a3eea8e5e431d7f40e4758ac761
|