link-grammar icon indicating copy to clipboard operation
link-grammar copied to clipboard

THe SQL dict and SUBSCRIPT_MARK

Open ampli opened this issue 3 years ago • 2 comments

It turned out SUBSCRIPT_MARK is not used with the SQL dict.

  1. dictionary_lookup_list() returnes subscripted words using a dot instead of SUBSCRIPT_MARK.
  2. Words that are subscripted with SUBSCRIPT_MARK are not found. It can be seen with !!test.n (the dot is converted to a SUBSCRIPT_MARK before the lookup).
  3. It seems that subscripted word lookups are not supported.

Of course, all of that can be fixed if desired.

ampli avatar May 26 '21 01:05 ampli

I'll think about this tomorrow. My knee-jerk reaction is that this is a bug, probably due to laziness and maybe forgetfulness, when the sql dict was implemented. Yes, I suppose it should be fixed. It's not urgent.

linas avatar May 26 '21 03:05 linas

In PR #1225 I added 2 tests - for (1) and (3). They are skipped for now.

ampli avatar Jun 11 '21 15:06 ampli