feat(validate): expand french article prompt
Some checks are pending
Test / test (push) Waiting to run
Security Scan / security (push) Successful in 11s

Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
Virgil 2026-04-02 00:09:59 +00:00
parent 3d03213587
commit eb006ab546
2 changed files with 2 additions and 2 deletions

View file

@ -51,7 +51,7 @@ func articlePromptForLang(lang, noun string) string {
noun = core.Trim(noun)
if isFrenchLanguage(lang) {
return core.Sprintf(
"Complete with the correct article (le/la/l'/les/un/une/des): ___ %s. Answer with just the article:",
"Complete with the correct article (le/la/l'/les/du/au/aux/un/une/des): ___ %s. Answer with just the article:",
noun,
)
}

View file

@ -346,7 +346,7 @@ func TestArticlePromptFrenchLocale(t *testing.T) {
if !contains(prompt, "livre") {
t.Errorf("prompt should contain the noun: %q", prompt)
}
if !contains(prompt, "le/la/l'/les/un/une/des") {
if !contains(prompt, "le/la/l'/les/du/au/aux/un/une/des") {
t.Errorf("prompt should mention French article options: %q", prompt)
}
}