Module dictcc::grouped [] [src]

Grouped representation and pretty printing of DictQueryResult in tabular form.

The grouping is inspired by the result page of dict.cc.

The grouping has two layers: 1. By word count 2. By word class group.

Example Output

Be careful when using this code, it's not being tested!
Verbs
--------------------
 Verb | verb | Verb

Nouns
--------------------------
 DE         | EN   | Noun
 foo        | foo  | Noun
 Substantiv | noun | Noun

Others
-------------------
 a | c | Adjective
 B | B | Adjective
 c | a | Adjective

2 Words: Verbs
----------------------------
 foo Verb | foo verb | Verb

Structs

DictEntryWordClassGroup

A group of entries, which have the same word count and word class group.

DictEntryWordCountGroup

A group of entries, which have the same word count and are coarsely grouped by word class.

DictQueryResultGrouped

Grouped representation of DictQueryResult.

Enums

WordClassesGroup

Coarse grouping of WordClass.