Dictionary-to-lines, and diagnostics dictionary builder