Bug 302679 - [kmail] composer: better language identification
Summary: [kmail] composer: better language identification
Status: RESOLVED DUPLICATE of bug 377726
Alias: None
Product: kmail2
Classification: Applications
Component: composer (show other bugs)
Version: 4.9 pre
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-28 06:54 UTC by Mark
Modified: 2024-03-12 12:06 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***