Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Feb 10, 2026

Description

Renamed num2word to numberToWord throughout the codebase to comply with naming conventions that avoid abbreviations and ensure spell-checkable identifiers.

Changes

  • src/Modelling/CdOd/Phrasing.hs: Renamed exported function num2wordnumberToWord
  • src/Modelling/CdOd/MatchCdOd.hs: Updated import and renamed local helper num2wordNumeralFallbacknumberToWordNumeralFallback

Context

This PR addresses feedback on #594. The abbreviation num conflicts with the repository's guideline requiring spell-checkable, non-abbreviated identifiers.

Triggering review: #594 (comment)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: jvoigtlaender <5853832+jvoigtlaender@users.noreply.github.com>
Copilot AI changed the title [WIP] Update support for variable amount of class and object diagrams Rename num2word to numberToWord to avoid abbreviations Feb 10, 2026
Copilot AI requested a review from jvoigtlaender February 10, 2026 07:52
@jvoigtlaender jvoigtlaender marked this pull request as ready for review February 10, 2026 07:53
Copilot AI review requested due to automatic review settings February 10, 2026 07:53
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Renames an internal helper in the CdOd phrasing utilities from an abbreviated identifier (num2word) to a spell-checkable, non-abbreviated name (numberToWord), aligning with the project’s naming guidelines (as discussed in #594).

Changes:

  • Renamed num2wordnumberToWord in Modelling.CdOd.Phrasing and updated the module export list.
  • Updated Modelling.CdOd.MatchCdOd to import numberToWord and renamed the local fallback helper accordingly.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/Modelling/CdOd/Phrasing.hs Renames the internal number-word lookup helper and its export to avoid abbreviations.
src/Modelling/CdOd/MatchCdOd.hs Updates import and local helper name to use numberToWord consistently in task text generation.

@jvoigtlaender jvoigtlaender merged commit 55d20af into number-words Feb 10, 2026
6 checks passed
@jvoigtlaender jvoigtlaender deleted the copilot/sub-pr-594-again branch February 10, 2026 07:56
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.

2 participants