refactor(conventions): improve title_case detector to reach 100% - #1711
Open
classiqdor wants to merge 2 commits into
Open
refactor(conventions): improve title_case detector to reach 100%#1711classiqdor wants to merge 2 commits into
classiqdor wants to merge 2 commits into
Conversation
Apply title case to markdown headings: - quantum_thermal_state_preparation: fix $\delta$-time → $\delta$-Time - projected_based_embedding_tutorial: 15 headings fixed - select_structures_BE: 1 heading fixed Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
classiqdor
force-pushed
the
fix/title-case-remaining
branch
2 times, most recently
from
August 13, 2026 11:50
063106e to
622e244
Compare
| }, | ||
| { | ||
| "cell_type": "markdown", | ||
| "id": "14", |
Member
There was a problem hiding this comment.
Detector improvements: - Strip LaTeX math ($...$, $$...$$), code spans, HTML tags, markdown links - Ignore minor words (a, the, of, in, via, as, from, etc.) - Ignore single letters (math variables like b, x) - Ignore ordinal suffixes (1st, 2nd, 3rd, 4th) - Support accented characters (À-ÿ) for names like Ampère - Load proper names whitelist from title_case_proper_names.txt (lazy load) Notebook fixes: - Convert sentence-style headings to bold paragraphs (not headings) - Add backticks around code identifiers in headings Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
classiqdor
force-pushed
the
fix/title-case-remaining
branch
from
August 13, 2026 13:09
622e244 to
b5fdbfa
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Improves the title_case detector to properly handle edge cases and reach 100% compliance.
Detector improvements:
$...$,$$...$$) before extracting words`...`) before extracting wordsb,x)title_case_proper_names.txtNotebook fixes:
Whitelist file:
Added
.internal/conventions/title_case_proper_names.txtfor proper names with unconventional casing (qDRIFT, iQuHack).Test plan
python .internal/conventions/report.py --rule title_caseshows 100%🤖 Generated with Claude Code