From The Document Foundation Wiki
To quickly create a dictionary, there must be words in a list, with one word per line. Use the following procedure:
- Open the list in Writer and select the ▸ menu to get the number of words in the file.
- Insert the number at the beginning of the file on a new line.
- Sort the list: