chewing/chewing-editor

One word phrase need to be specially processed

Opened this issue · 5 comments

While adding a single word as a phrase with a correct bopomofo, it will prioritize the word.
But If you add second word with the same bopomofo, it will not have any effect.
ex. adding 試 (ㄕˋ) and 嗜(ㄕˋ) in sequence , it will select 試 by default, but the second 嗜 will not have a priority in the word select window.
As more testing , a single word with wrong bopomofo will not have any usage.
ex. adding 看 (ㄕˋ) will not have any effect , so it should be rejected while adding it.

Ref #108

#108 is related about 看 (ㄕˋ) problem
But as I mentioned above, one word phrases will make useless data.
How about rejecting all one word phrases?
Or keeping one word in bopomofo only map one phrase?

One word phrase will change the priority of a word, so it is still necessary.

While adding a single word as a phrase with a correct bopomofo, it will prioritize the word.
But If you add second word with the same bopomofo, it will not have any effect.
ex. adding 試 (ㄕˋ) and 嗜(ㄕˋ) in sequence , it will select 試 by default, but the second 嗜 will not have a priority in the word select window.

@czchen It seems like that won't get higher priority in this case. Is it a bug in libchewing?

I found that the priority is defined by how many times that user type that word by reading libchewing's source code.
So I test it by typing same word more times and the priority changes as expected.
But this is making the question focusing at the one word phrase will not have a priority in the word select window , which is related about libchewing.

BTW Is it possible for chewing-editor to edit or view the priority e.g userfreq in UserPhraseData ?