Skip to content

Lessons: plainer prose, English and Burmese - #16

Merged
devmtnaing merged 5 commits into
mainfrom
copy-lessons
Sep 28, 2026
Merged

devmtnaing merged 5 commits into
mainfrom
copy-lessons

Conversation

@devmtnaing

Copy link
Copy Markdown
Owner

Stacked on #15 (copy-rewrite). Merge #15 first; until then this diff also shows #15's commit.

Rewrites the written text of all 46 lessons in English and Burmese together, removing the patterns that make the text read as AI-written. Meaning is unchanged: every number, code span, HTML tag and claim is kept.

What changed

  • Dashes: every em and en dash is gone. That was about 1,470 strings. English uses a period, colon, comma or parentheses instead; Burmese uses ။ or ၊.
  • Stock phrases: rewritten, with the Burmese changed to match:
    • "N ways the statement bites, worth reading before you code" → "N traps in the statement to know before you code"
    • "The submission worth writing" → "The one to submit"
    • "is a licence to", "the whole trick", "load-bearing", "quietly rot", "writes itself", "the whole point"
  • Plain sentences are left as they were.
  • Curly quotes (“) become straight quotes, as on the rest of the site.
  • A few existing flaws are fixed along the way:
    • a grammar slip in move-zeroes: "that reverse-order arrive at the front"
    • a clause missing from one Burmese line in number-of-islands
    • x-sum's Burmese traps heading now uses the wording every other lesson uses
  • Also cleaned: input error messages, the climbing-stairs verification badges ("1–35" → "1 to 35"), the "Boyer-Moore vote" mode name, and the cost-section headings.

Scope

  • Everything in each lesson's page.js, plus the prose parts of lesson.js: approach blocks, solution captions, example explanations, approach descriptions, caveats and field labels.
  • Left alone:
    • the step-by-step walkthrough text, which is generated alongside the code
    • LeetCode's quoted problem statements
    • code listings
    • LeetCode's own tag names in problems.json

Keeping it that way: the skill now has a short "write the prose plainly" rule, and the lesson-kit reference and CONTRIBUTING describe the new traps title. New lessons will follow them.

How it was done and checked

  • A small tool listed every English/Burmese pair in each lesson and swapped rewrites into place in the source. It warned whenever a rewrite changed a number, a <code> span or an HTML tag. The two warnings it raised were both deliberate: one clarifying "its" as "example 2's", and one Burmese heading that now spells a number out.
  • A final count found no prose strings with dashes in any lesson.
  • npm run check: 46 lessons, 0 failures.
  • npm run audit: passed, 46 pages, including the 320px width checks in both languages.

The home page intro was a paragraph of detail (the study plans it was drawn
from, the even split by difficulty, how the code was checked) where one line
does the job: what the list is and what opening a problem gives you. It
also counted 45 problems above a list that says 47, so the count goes; the
list carries it.

The footer and the report box drop their dashes and passive phrasing.
English and Burmese rewritten together in page.js and the prose parts of
lesson.js: dashes gone, stock phrases replaced. Numbers, code spans, tags
and claims unchanged.
x-sum rewritten like the rest. Input error messages, a mode name, the
climbing-stairs badges and the cost headings lose their dashes too, and
the skill and CONTRIBUTING describe the new traps title and the plain-prose
rule so new lessons follow it.
@coderabbitai

coderabbitai Bot commented Sep 28, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 54d222c4-e1bd-4db2-8561-ff4d6547f5bc


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅

View logs ↗
No Preview URL. Enable ↗ dec0c6a 2026-09-28T14:40:28.360Z Visit the dashboard ↗

@devmtnaing
devmtnaing merged commit ae08745 into main Sep 28, 2026
101 of 102 checks passed
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.

1 participant