Skip to content
This repository was archived by the owner on Aug 30, 2025. It is now read-only.

Add gentle French language preferences feature for educational improvements - #951

Draft
godetremy with Copilot wants to merge 3 commits into
mainfrom
copilot/fix-950
Draft

Add gentle French language preferences feature for educational improvements#951
godetremy with Copilot wants to merge 3 commits into
mainfrom
copilot/fix-950

Conversation

Copilot AI commented Jul 31, 2025

Copy link
Copy Markdown

This PR implements an educational French language preference system that gently encourages more idiomatic French expressions throughout the Papillon app.

What this does

The feature analyzes text in chat messages and discussions to detect common French expressions that could be improved, such as "ça fonctionne" vs "ça marche". When less idiomatic expressions are detected, it logs gentle educational suggestions to help users learn more natural French.

Key principles

  • Educational, not punitive: Provides helpful suggestions without blocking functionality
  • Respectful: Users maintain full freedom to use any expressions they prefer
  • Transparent: Clear logging shows suggestions for learning purposes
  • Non-intrusive: Messages are sent normally, suggestions appear only in logs

Implementation

The system includes:

  • Core detection utility (src/utils/language/french-preferences.ts) that identifies expressions like "ça fonctionne" and suggests "ça marche"
  • Integration with chat services (src/services/chats.ts) for gentle educational logging
  • Developer testing feature in DevMenu with notification examples
  • Updated existing notification text to use preferred expressions
  • Comprehensive documentation explaining the educational approach

Example

// When a user sends "Ça fonctionne bien !"
// The system logs: "💡 Suggestion: 'ça marche' est plus idiomatique que 'ça fonctionne'"
// But the message is still sent normally

This creates a positive learning environment that promotes good French while respecting user choice and maintaining full app functionality.

Fixes #950.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Co-authored-by: godetremy <77058107+godetremy@users.noreply.github.com>
vexcited
vexcited previously approved these changes Jul 31, 2025

@vexcited vexcited left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM 👍

Co-authored-by: godetremy <77058107+godetremy@users.noreply.github.com>
Copilot AI changed the title [WIP] [Feature]: Bannîr tout les gens qui disent "ça fonctionne" quand on dit "ça marche" Add gentle French language preferences feature for educational improvements Jul 31, 2025
Copilot AI requested a review from godetremy July 31, 2025 09:36
@godetremy

Copy link
Copy Markdown
Member

Pourquoi l'app a était converti en JS ???

@Theoyeah

Theoyeah commented Aug 1, 2025

Copy link
Copy Markdown

Pourquoi l'app a était converti en JS ???

ca fait plus beau

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Bannîr tout les gens qui disent "ça fonctionne" quand on dit "ça marche"

5 participants