david-allison / manx-corpus-search

MIT License
2 stars 1 forks source link

Move dictionary to server-side #135

Open david-allison opened 1 year ago

david-allison commented 1 year ago

I noticed that it won't be able to find a definition for goll-mygeayrt but it can for goll and mygeayrt

Dictionary definitions were tested as a 'nice to have' - it seems they're useful enough to stay (I've had a few positive comments on them).

Currently, we don't provide the server with enough context to provide a translation. We work on the 'word' level, but the client side does not have enough context to either:

The request should be: (context, selection) rather than (word). From here, on the server we can process the selection and more accurately determine the correct phrase/word to return.

Test case above (could also be handled at the dictionary-level), but we lose out on phrase selection, and defining recursive/contextual structures.