https://bugzilla.wikimedia.org/show_bug.cgi?id=63122

--- Comment #8 from David Chan <da...@sheetmusic.org.uk> ---
(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;
}

[*] I *presume* the old method is faster, but I have not actually tested this.
Feel free to do so and to post actual numbers 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

Reply via email to