jbovlaste icon indicating copy to clipboard operation
jbovlaste copied to clipboard

Error after saving a gloss and a keyword

Open lagleki opened this issue 10 years ago • 6 comments

  1. Add a new definition of {badna} in Test Language.
  2. In editing mode add a new glossword and a new keyword (they must differ)
  3. Press Check, then put checkmarks and then submit.

You have an error.

lagleki avatar Aug 13 '14 13:08 lagleki

It looks like due to this problem, some keywords (e.g. badna1 for en-simple definition) lack the implicit vote that would have been recorded had it been possible to enter the glossword and keyword1 simultaneously. This may require a backfill.

The problem may also be more involved. The data model (esp. natlangwordbestguesses) presupposes that a given natural language word may only occur in one position in a definition. In the not uncommon case of keyword0 ("glossword") == keyword1, only one of these "places" is considered "best" -- the one with the most votes.

teleological avatar Aug 13 '14 13:08 teleological

A similar issue: http://jbovlaste.lojban.org/dict/editdef.html?definition=299

The glossword is not exported in xml:

<valsi word="djica" type="gismu">
  <rafsi>dji</rafsi>
  <user>
    <username>officialdata</username>
    <realname>Official Data</realname>
  </user>
  <definition>$x_{1}$ desires/wants/wishes $x_{2}$ (event/state) for purpose $x_{3}$.</definition>
  <definitionid>299</definitionid>
  <notes>If desire is for an object, this is sumti-raising; use tu&apos;a in $x_2$ (or use lujvo = {po&apos;edji}).  See also {taske}, {xagji}, {mukti}, {nitcu}, {nelci}, {pacna}, {prami}, {rigni}, {trina}, {xebni}, {xlura}.</notes>
</valsi>

lagleki avatar Aug 14 '14 10:08 lagleki

In the case of "desire" (English), the preferred status has been assigned to the definition of {au}:

http://jbovlaste.lojban.org/natlang/en/desire

It seems like the "best guesses" model deserves a broad reconsideration. That might take enough work that it should be saved for jvs2. I'll try to find a shorter term solution.

teleological avatar Aug 14 '14 16:08 teleological

The point is that I want a glossword for {djica} no matter to what else it has been assigned.

2014-08-14 20:02 GMT+04:00 Riley Martinez-Lynch [email protected]:

In the case of "desire" (English), the preferred status has been assigned to the definition of {au}:

http://jbovlaste.lojban.org/natlang/en/desire

It seems like the "best guesses" model deserves a broad reconsideration. That might take enough work that it should be saved for jvs2. I'll try to find a shorter term solution.

— Reply to this email directly or view it on GitHub https://github.com/lojban/jbovlaste/issues/77#issuecomment-52203454.

lagleki avatar Aug 14 '14 16:08 lagleki

As noted on IRC, a workaround (that doesn't really solve the problem) is to add a "sense" to one of the glosswords. Then there won't be a duplicate gloss. This problem also shows up in the search (search for "desire" en->jbo only comes up with {au}, not {djica}).

durka avatar Aug 14 '14 17:08 durka

gleki: I take your point. I'm just explaining (for myself, or for whoever implements a solution) why the current data model doesn't support that.

teleological avatar Aug 14 '14 21:08 teleological