UAlbertaALTLab / morphodict

Plains Cree Intelligent Dictionary
https://itwewina.altlab.app/
Apache License 2.0
21 stars 12 forks source link

Implement English-to-Cree search, based on WordNet senses #1138

Open aarppe opened 1 year ago

aarppe commented 1 year ago

Here's a mock-up HTML version representing what an implementation of searching with English words would look like, when matched with WordNet senses under which the Cree entries would be organized based on their manual classifications according to WN (in some order, here in decreasing corpus frequency).


English WN sense → Cree CW entries: WAIT
  1. WAIT (V): stay in one place and anticipate or expect something
    [ (v) wait#1 (100) ]
    • pêhêw (VTA-1)
      1. s/he waits for s.o.
    • pêhow (VAI-1)
      1. s/he waits
      2. s/he expects, s/he is in expectation (of someone's arrival)
    • pêhtâw (VTI-2)
      1. s/he waits for s.t.
    • aswaham (VTI-1)
      1. s/he waits eagerly for s.t., s/he lies in wait for s.t.
      2. s/he catches s.t. as it drips
    • pa-pêhêw (VTA-1)
      1. s/he is still waiting for s.o.

  2. WAIT (V): look forward to the probable occurrence of
    [ (v) wait#3 (33) - (v) await#1 (25) - (v) expect#3 (12) - (v) look#8 (1) ]
    • pêhow (VAI-1)
      1. s/he waits
      2. s/he expects, s/he is in expectation (of someone's arrival)
    • âswamêw (VTA-1)
      1. s/he awaits s.o. (as food) with an open mouth
    • âswahtam (VTI-1)
      1. s/he awaits s.t. (as food) with an open mouth
    • âswahcikêw (VAI-1)
      1. s/he awaits food with an open mouth (e.g. baby, bird)

  3. WAIT (V): wait before acting
    [ (v) wait#2 (49) - (v) hold_off#2 (0) - (v) hold_back#4 (0) ]

  4. WAIT (N): the act of waiting (remaining inactive in one place while expecting something)
    [ (n) waiting#1 (2) - (n) wait#2 (2) ]
    • pêhowin (NI-1)
      1. waiting
      2. expecting someone

  5. WAIT (N): time during which some action is awaited
    [ (n) wait#1 (2) - (n) delay#1 (2) - (n) time_lag#1 (0) - (n) postponement#1 (0) - (n) hold#4 (0) ]

  6. WAIT (V): serve as a waiter or waitress in a restaurant
    [ (v) wait#4 (2) - (v) waitress#1 (0) ]


The above is created with the following incantation, run in the ALTLab repo in: altlab/eng/bin/:

./sort-cw-entries-by-wn-senses.sh ../../crk/dicts/Wolvengrey_WN_RW.tsv ../dicts/WordNet-3.0 ../../crk/generated/ahenakew_wolfart_bloomfield.fst+cg.freq-sorted.txt | ./organize-cw-wn-senses-by-wn-synsets.sh | ./pretty-print-wn-sense-search.sh 'wait' '' html | less

What this would require are the following:

Some further thinking would be needed for the following:

aarppe commented 1 year ago

@nienna73 @DBDacanay I couldn't resist creating a full-fledged mock-up example case, illustrating what the English-to-Cree search could actually look like, describing the broad strokes and open questions in this meta-issue. When you need a break, you might consider whether the above would make sense, or might benefit from some further tweaking.