Back to LanguageTool Homepage - Privacy - Imprint

[En] How can I have access to the dictionary database?


#1

[En] How can I have access to the dictionary database in a readable text format,
maybe plain text or XML or whatever that I can open in a text editor like Notepad++?
I need POS tags too.


(Daniel Naber) #2

This is documented at http://wiki.languagetool.org/developing-a-tagger-dictionary#toc2


#3

Thanks, @dnaber.


#4

@dnaber, I exported the dictionary with some success. To do that, I created a Windows Batch file as follows:

`
java -cp "C:\Program Files (x86)\LanguageTool-20170101-snapshot\LanguageTool-3.7-SNAPSHOT\languagetool.jar" org.languagetool.tools.DictionaryExporter -i "C:\Program Files (x86)\LanguageTool-20170101-snapshot\LanguageTool-3.7-SNAPSHOT\org\languagetool\resource\en\english.dict" -info "C:\Program Files (x86)\LanguageTool-20170101-snapshot\LanguageTool-3.7-SNAPSHOT\org\languagetool\resource\en\english.info" -o dictionary.dump.txt
cmd

`
And it worked successfully.
The dictionary in a text format is pretty high in file size, it's around 7.94 MB. I have no problem, though. I was just looking for this.
Thanks, again.