LanguageProfile: iteration by gram length.
NgramFrequencyData: only uses the desired gram sizes, reduces memory consumption if not all are needed, and faster lookups.