https://bugzilla.wikimedia.org/show_bug.cgi?id=63122
--- Comment #9 from Xiangquan Xiao <xiaoxiangq...@gmail.com> --- (In reply to David Chan from comment #8) > (2) is correct. Your method is more precise and works for more languages. > However the old method is faster[*], and completely reliable if it returns > false. Therefore we should do the following pseudo-code: > > function detectTofu ( text ) { > maybeTofu = <old technique>; > if ( maybeTofu ) { > isTofu = <new technique>; > } else { > isTofu = false; > } > return isTofu; > } Hi, how about a sentence only contains 1 tofu, which is common in languages like Chinese? detectTofu(text) will return true in such situation. Is that correct? BTW, I'll test the performance of both techniques and post result here :) -- You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l