rohanpm / qingfanyi

Interactive Chinese to English dictionary lookup tool for Linux desktops
GNU General Public License v3.0
0 stars 1 forks source link

Allow selecting alternative translations #16

Open rohanpm opened 8 years ago

rohanpm commented 8 years ago

The translator currently parses text using the longest possible match of each character sequence and ignores other matches.

It would be better to present alternative matches somehow.

This is important because the default behavior will give wrong results on some sentences, e.g.

这项任务花了我一下午都

That will parse as (一下), (午) but the correct parsing would be (一), (下午).