Skip to content

Drop the article before domain words in comments - #90

Merged
dadachi merged 1 commit into
mainfrom
fix/article-before-domain-words
Oct 18, 2026
Merged

dadachi merged 1 commit into
mainfrom
fix/article-before-domain-words

Conversation

@dadachi

@dadachi dadachi commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

Closes #89

Summary

  • StringResourcesTranslationTest and the values-ja/strings.xml header: "nativeapptemplate-agent renames …" → "The agent renames …" (the agent's name is renamed with the product).
  • StringResourcesTranslationTest: "so a shop must never be" → "so shop must never be"; "so an item tag must always be" → "so item tag must always be".
  • ModelJsonTest: "A shop without …" → "Shop without …".
  • Test fixtures (7 ViewModel tests): SHOP_DESCRIPTION = "This is a shop." → "This is shop.", as in the paid template.
  • New StringResourcesTranslationTest.english_hasNoArticleBeforeRenamedWords (same as the paid template's): fails on a/an before item tag(s), shop(s), shopkeeper(s) or NativeAppTemplate in any English string or plural. No English string currently violates it.
  • CHANGELOG [Unreleased] → Fixed entry.

Test plan

  • ./gradlew spotlessCheck
  • ./gradlew testDebugUnitTest
  • ./gradlew lintDebug

🤖 Generated with Claude Code

https://claude.ai/code/session_01UZJxUoubntzu7Ec7DPVfAr

Comments in StringResourcesTranslationTest and the values-ja header
named nativeapptemplate-agent, which the rename turns into
"<slug>-agent", and put "a"/"an" before shop and item tag, which can't
follow the first sound of the renamed word. They now say "the agent"
and "so shop must never be" / "so item tag must always be". ModelJsonTest
and the test fixtures' SHOP_DESCRIPTION ("This is shop.", as in the paid
template) drop the article too. StringResourcesTranslationTest fails on
"a" or "an" before a domain word or the product name in an English
string or plural, as in the paid template.

Closes #89

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UZJxUoubntzu7Ec7DPVfAr
@dadachi
dadachi merged commit e84a42f into main Oct 18, 2026
1 check passed
@dadachi
dadachi deleted the fix/article-before-domain-words branch October 18, 2026 00:04
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.

StringResourcesTranslationTest comments: article before a domain word, and the agent's name

1 participant