[lkml]   [2021]   [Jun]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 0/3] scripts/spelling.txt: add some spelling pairs and reorder

On 2021/6/11 16:10, Andy Shevchenko wrote:
> On Fri, Jun 11, 2021 at 11:02 AM Andy Shevchenko
> <> wrote:
>> On Fri, Jun 11, 2021 at 10:19 AM Zhen Lei <> wrote:
>>> Add and use it to reorder, then add some spelling
>>> "mistake||correction" pairs.
>> The sorting idea is good, but the order is not.
>> What you really need is to use language corpus [1] instead. So in such
>> case you will eliminate false positives (to some extent).
> Perhaps I need to elaborate what I meant. The (important) feature of
> the corpus is sorting by frequency of the word usage. That's what

That's unlikely. Even if that were the case, no one could figure 'the frequency' out.

> would be the best. Unfortunately I don't know if codespell uses linear
> search or hash based (i.o.w. does it convert the input file to the
> Python list() or set() object?).

I think "spelling.txt" will be reprocessed by the tool.

For the same set of data, if the performance differs significantly or even does not work
due to the user's input order, the implementation of the tool itself must be problematic.

So our ranking of "spelling.txt" is how to make it easy to see.

I don't know if it's right. Pure logical reasoning.

>> [1]:

 \ /
  Last update: 2021-06-11 11:49    [W:0.068 / U:3.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site