Oliver Wong said:
This is the wrong approach, as German words can almost infinitely be
composed together to form yet more words. If you were to actually have a
file with every possible German word, the file would end up being several
gigabytes.
While you're right that German words can be blended together to make bigger
words, I don't think anyone is expecting a dictionary to have every single
compound that can be made.
<Pedantic aside>I think the longest real German word I ever saw was in a
German textbook in a university course. It was something like:
Vierwaldstatterseedampfschiffgesellschaft. Despite this horrendously long
word, it is actually easy to break down:
Vier = four
wald = forest
Tattersee = a proper place name containing "see", which means "lake"
dampf = steam
schiff = ship
gesellschaft = company
If you put it all together, it meant something like:
Lake of the Four Woods Steamship Company
(There might have been another word in their too, something that meant
"travel" or "excursion" but I don't recall for sure.)
Basically, this is analagous to making "raincoat" from "rain" and "coat";
it's just that German does this more frequently than English.