Theiling Online    Sitemap    Conlang Mailing List HQ   

Re: Hyperlinking a dictionary to a corpus

From:Gary Shannon <fiziwig@...>
Date:Thursday, December 1, 2005, 19:37
--- Jim Henry <jimhenry1973@...> wrote:

> On 11/30/05, Gary Shannon <fiziwig@...> wrote:
<snop>
> It might be easier to > create a special file of just sample sentences > and generate the links to that rather than > try to write a script that will search the grammar, > semantics and translation documents for > sample sentences,
Yes, this is what I did. I cut and pasted the sample sentences into a single corpus file, and then generated from that a sample sentence file that repeats each sentence as many times as there are words in the sentence. Thus, using Enlgish as an exmpale, "I will run" will generate three separate lines in the samples files: i - I will run run - I will run will - I will run The anchor names are the words themselves so the dictionary entry for "run" only has to have the anchor "#run" added to the link to the single samples file. At this anchor will be all the sample sentences that contain the word "run". You can see the actual sample sentences file at http://fiziwig.com/concord.html --gary