dhowe / ramble

Ramble v2.0
0 stars 3 forks source link

The problem of might; or the commutativity of similarity #76

Closed dhowe closed 2 years ago

dhowe commented 2 years ago

There is a problem with 'might', which occurs in the original text, where it leads to a single similar and then oscillates. I've added a few additional similars to the overrides (would, could, should, must), but I notice that we are often then stuck on one of these.

So the question is whether we should consider similar-words to be sort of commutative, so that if word A has similars [B,C,D], then word B should have, at least, [C,D,A] for similars, etc.

If not clear, just check this line

So one option is to automatically do exactly what is written there (the 4 subsequent lines) for every similar-override...

dhowe commented 2 years ago

this is implemented (you can see result in first few lines of console output, with 17 overrides resulting in 142 cache entries):

[INFO] Ramble v1.0.65
[INFO] Found 17 similar overrides, 142 entries
[INFO] Loaded 176 cached similars, 303 total entries

@shadoof please close if you agree, else respond below

dhowe commented 2 years ago

Another question, @shadoof, is whether we want to do this for newly discovered words as well ?

For example, we lookup a new word at runtime A and find similars [B,C,D], and A is then added to our cache, in case it comes up again. Do we also want to add the following to the cache, if they are not there? Or perhaps we use them only if we get no other results via the usual RiTa search?

{
  B: [C,D,A],
  C: [B,D,A],
  D: [B,C,A],
}

FYI, the max number of similars we accept is currently set to 20.

shadoof commented 2 years ago

I agree with the already implemented commutativity.

For the second question, hard to gauge that possible effects but instinct says: implement but, "we use them only if we get no other results via the usual RiTa search?"

dhowe commented 2 years ago

For the second question, hard to gauge that possible effects but instinct says: implement but, "we use them only if we get no other results via the usual RiTa search?"`

Agreed

dhowe commented 2 years ago

implemented