Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Text Case Converter: show how identifiers are split into words

Đang mở
#409 2 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@srikar-naidu đang làm issue này rồi.

Từ ngày 28/10/2026.

  • #418 của @srikar-naidu — đang mở

Đánh giá

Issue này chưa được đánh giá.

Mô tả

enhancement hacktoberfest
What problem does this solve?

The Text Case Converter converts identifiers between naming conventions, but users cannot see how the input was segmented before conversion.

Inputs containing acronyms, digits, or mixed separators can have ambiguous word boundaries. Showing the detected words would help users understand results such as converting XMLHttpRequest to xml_http_request.

Proposed solution

Add a “Detected words” section below the input, showing the word segments used by the existing case-conversion logic.

Scope
  • Reuse the existing word-splitting logic so the displayed segments match the conversion results.
  • Display each segment as a readable token, preserving its original casing.
  • Handle camelCase, PascalCase, acronyms, and supported separators.
  • For multi-line input, show detected words separately for each non-empty line, labeled with its original line number.
  • Explain that acronym and digit boundaries follow the converter’s existing rules.
  • Show a helpful empty state when the input contains no detected words.
  • Keep existing conversion behavior unchanged.
Acceptance criteria
  • XMLHttpRequest displays XML, Http, and Request.
  • user_id displays user and id.
  • HTTP_status_code displays HTTP, status, and code.
  • Digit boundaries match the existing conversion behavior and are covered by tests.
  • Repeated separators and surrounding whitespace do not create empty tokens.
  • Unicode input follows the same rules as the existing converter.
  • The detected words update as the input changes.
  • Multi-line results preserve the association with their source lines.
  • Tokens remain readable in both site themes and are accessible to screen readers.
  • Word segmentation lives in lib/ with tests covering acronyms, digits, separators, Unicode, and multi-line input.
  • All processing happens locally in the browser.
  • npm run lint && npm run test && npm run build pass.

Custom splitting rules, editable tokens, and changes to existing conversion algorithms are outside this issue’s scope.

Fit
  • This can work entirely in the browser with no server or data leaving the tab.
Ngôn ngữ chính
TypeScript
Star
1
Fork
9
Merge trung bình
7 giờ 48 phút
Pull request đã merge (30 ngày)
187

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của codercops/toolbelt

Tất cả issue của codercops/toolbelt

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.