Colleagues
I am working on the second edition of TLHALOSI YA MEDI YA SETSWANA (The Setswana monolingual dictionary). One of the attractive features that we wish to include in the second edition is collocates. We need advice on how this could be implemented in the current version of FLEX. The look that we wish to have is similar to that of Longman Dictionary of Contemporary English 6th Edition (2016) - I have included a few samples. For instance at the end of the entry cake we would like to have a collocations' box which shows something like this:
VERB + cake
bake a cake (defn.) (Example sentence)
decorate a cake (defn.) (Example sentence)
ice a cake (defn.) (Example sentence)
frost a cake (defn.) (Example sentence)
Or at the end of belief entry to have something like:
ADJECTIVE + belief
a firm strong belief (defn.) (Example sentence)
a strongly-held belief (defn.) (Example sentence)
a common belief (defn.) (Example sentence)
mistaken belief (defn.) (Example sentence)
sincere belied (defn.) (Example sentence)
etc
I envisage that in designing something like that one would have a drop down list of Parts of Speech, or perhaps a sequence of POS followed by a box to add an entry; followed below that possible collocates; a possible definition and a space for an Example sentence. This would be so that the following possible schemas could be accommodated:
1. POS + Entry
COLLOCATE + Entry + (defn.) (Example sentence)
COLLOCATE + Entry + (defn.) (Example sentence)
COLLOCATE + Entry + (defn.) (Example sentence)
etc
2. Entry + POS
Entry + COLLOCATE + (defn.) (Example sentence)
Entry + COLLOCATE + (defn.) (Example sentence)
Entry + COLLOCATE + (defn.) (Example sentence)
etc
3. POS/POS + Entry
COLLOCATE + Entry + (defn.) (Example sentence)
COLLOCATE + Entry + (defn.) (Example sentence)
COLLOCATE + Entry + (defn.) (Example sentence)
etc
4. POS + POS + Entry (defn.) (Example sentence)
COLLOCATE + COLLOCATE + Entry + (defn.) (Example sentence)
COLLOCATE + COLLOCATE + Entry + (defn.) (Example sentence)
COLLOCATE + COLLOCATE + Entry + (defn.) (Example sentence)
etc
5. Entry + POS + POS (defn.) (Example sentence)
Entry + COLLOCATE + COLLOCATE + (defn.) (Example sentence)
Entry + COLLOCATE + COLLOCATE + (defn.) (Example sentence)
Entry + COLLOCATE + COLLOCATE + (defn.) (Example sentence)
I am thinking aloud and being a non-programmer I am not sure if something like this could be implemented with a tweaking of FLEX or not. I would like to hear what others think
Regards
OTLOGETSWE