Skip to content

fix: correct typos in CandidateGenerator error message and comment (Fixes #601)#602

Open
rtmalikian wants to merge 1 commit into
allenai:mainfrom
rtmalikian:fix/issue-601-typo-constuctor
Open

fix: correct typos in CandidateGenerator error message and comment (Fixes #601)#602
rtmalikian wants to merge 1 commit into
allenai:mainfrom
rtmalikian:fix/issue-601-typo-constuctor

Conversation

@rtmalikian

Copy link
Copy Markdown

Fixes #601

Problem

The CandidateGenerator.__init__() error message in scispacy/candidate_generation.py contains a typo:

"You cannot pass both a name argument and other constuctor arguments."
#                                              ^^^^^^^^^ should be "constructor"

Also fixed a second typo in the adjacent comment: "compatability" → "compatibility".

Fix

  • Line 247: constuctorconstructor
  • Line 251: compatabilitycompatibility

Verification

  • Syntax check: ast.parse() passes
  • No behavioral change — only string literals modified

Changelog

Date Change Author
2026-06-19 Fix typos in CandidateGenerator error message and comment rtmalikian

Files Changed

  • scispacy/candidate_generation.py — Fixed 2 typos in error message and comment

Verification

  • python3 -c "import ast; ast.parse(open('scispacy/candidate_generation.py').read())" — syntax OK

About the Author: Raphael Malikian — Clinical AI Solutions Architect. I specialise in building and fixing AI/ML systems for healthcare, including vector databases, RAG pipelines, and clinical NLP. If you need help with your project or think I can add value to your organisation, feel free to reach out — I'd love to connect.

📧 rtmalikian@gmail.com
🔗 GitHub: https://github.com/rtmalikian
🔗 LinkedIn: http://www.linkedin.com/in/raphael-t-malikian-mbbs-bsc-hons-71075436a


Disclosure: This code was developed with assistance from MiMo-v2.5-Pro (Xiaomi) via Hermes Agent (Nous Research). All changes were reviewed, tested against the actual codebase, and verified for correctness.

- Line 247: 'constuctor' → 'constructor' in ValueError message
- Line 251: 'compatability' → 'compatibility' in comment

Signed-off-by: Raphael Malikian <rtmalikian@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: typo 'constuctor' → 'constructor' in CandidateGenerator error message

1 participant