I'd like to build a dictionary file for use with the spelling module
and base that dictionary on words that appear in my word lexicon.  So
I want to dump the contents of the lexicon to a file formatted
according to the spelling dictionary schema.

To do this, I'm thinking of running through the lexicon letter by
letter and constructing the spelling dictionary from the output.

for $i in cts:word-match("a*") [1 to 2000]
return
<word>{$i}</word>

Is this the best way to do this?  I'm thinking that creating a
dictionary out of lexicons is probably a pretty common task and that
my approach seems cumbersome.  I'm thinking also it would be great if
you could have the dictionary automatically update itself based on the
content of one or more word lexicons as new documents were added,
updated, and deleted in a database or databases.

Alan

Alan Darnell
University of Toronto
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to