Bug 302679

Summary: [kmail] composer: better language identification
Product: [Applications] kmail2 Reporter: Mark <markotahal>
Component: composerAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: wishlist CC: carl, montel
Priority: NOR    
Version: 4.9 pre   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Mark 2012-06-28 06:54:04 UTC
For spellchecker to work, proper language must be set. It would be nice if this could be done seamlessly without user intervention - language identification. 

Two techniques come on my head: 
A/ determine by keyboard layout used
    + easy to code
    + instant
     - some languages you can type in latin (en keyb)

B/ some AI technique for language identification
    there should be some tools available, some quick solution is: for each supported lang, make a list of top 200 used words. For the new text you type-pair it with list(lang) with most common words. 
    I could code that easily, I just dont know how to integrate that in kmail.
    +does not suffer the "latin issue": eg. Czech - words 
dobrý  (good)
český  (czech)
člověk (person)     are 100% correct

but usually can be written as dobry cesky clovek - which could be corrected by spellcheck but is for sure czech lang. and people use it in emails. 



USECASE: 
mostly would benefit multilingual environments or workspaces where your native language is other than English but corporate communication is in Eng. 

REALISATION: 
I suggested ways to language identification above, for GUI part I would like a checkbox 'automatic language identification' in the Spellchecker menu. maybe a choice between the keyboard and AI version. 

DIFFICULTY: 
should be easy :)




Reproducible: Always
Comment 1 Laurent Montel 2012-06-28 09:30:42 UTC
"A/ determine by keyboard layout used + easy to code + instant - some languages you can type in latin (en keyb)"
I know a lot of guy which use english keyboard and they are french.

And I wrote in english and I have an french keyboard 
=> not a solution

We need a code to detect language not a workaround about potential keyboad layout
Comment 2 Carl Schwan 2024-03-12 12:06:25 UTC
This needs better language autodetection in sonnet.

*** This bug has been marked as a duplicate of bug 377726 ***