Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Feb 10, 2026

  • Understand current code structure and usage patterns
  • Make numberWords a top-level definition in Phrasing.hs
  • Remove numberToWord function from Phrasing.hs
  • Update export list in Phrasing.hs to export numberWords instead of numberToWord
  • Inline numberToWord usage in MatchCdOd.hs
  • Update import in MatchCdOd.hs to import numberWords instead of numberToWord
  • Run EditorConfig validation
  • Build and validate changes
  • Run targeted tests
  • Reply to review comment

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits February 10, 2026 10:42
Co-authored-by: jvoigtlaender <5853832+jvoigtlaender@users.noreply.github.com>
@jvoigtlaender jvoigtlaender marked this pull request as ready for review February 10, 2026 10:46
Copilot AI review requested due to automatic review settings February 10, 2026 10:46
@jvoigtlaender jvoigtlaender changed the title [WIP] Refactor based on review feedback: Inline numberToWord Refactor based on review feedback: Inline numberToWord Feb 10, 2026
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

Refactors the Cd/Od phrasing utilities by removing the numberToWord helper and exposing numberWords as the top-level API, then updating MatchCdOd to perform the lookup inline using the exported map.

Changes:

  • Replace numberToWord with an exported numberWords :: Language -> Map Int String in Phrasing.hs.
  • Update MatchCdOd.hs to import numberWords and inline the map lookup with a numeric fallback.
  • Remove the now-unused local numberToWordNumeralFallback helper in MatchCdOd.hs.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/Modelling/CdOd/Phrasing.hs Removes numberToWord, exports numberWords as the shared language-to-map accessor.
src/Modelling/CdOd/MatchCdOd.hs Switches to numberWords and inlines the lookup logic for task text number phrasing.

@jvoigtlaender jvoigtlaender merged commit 5806b43 into number-words Feb 10, 2026
27 checks passed
@jvoigtlaender jvoigtlaender deleted the copilot/sub-pr-594 branch February 10, 2026 10:54
Copilot AI requested a review from jvoigtlaender February 10, 2026 10:54
Copilot stopped work on behalf of jvoigtlaender due to an error February 10, 2026 10:54
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