WORDLIST2DAWG(1)

πŸ’… WORDLIST2DAWG(1) πŸ’…

ok so bestie, welcome to wordlist2dawg β€” the manual page. yes that's the manual name, and yes it's a mouthful, but trust me, she's iconic. this little tool converts a wordlist into a DAWG for Tesseract, and we're gonna get into it. πŸŽ€


✨ SYNOPSIS ✨

like, here's every single way you can run her, no cap:

wordlist2dawg WORDLIST DAWG lang.unicharset
wordlist2dawg -t WORDLIST DAWG lang.unicharset
wordlist2dawg -r 1 WORDLIST DAWG lang.unicharset
wordlist2dawg -r 2 WORDLIST DAWG lang.unicharset
wordlist2dawg -l <short> <long> WORDLIST DAWG lang.unicharset

πŸ¦‹ DESCRIPTION πŸ¦‹

so wordlist2dawg(1) does exactly what it says on the tin: it converts a wordlist into a Directed Acyclic Word Graph β€” a DAWG, for the uninitiated πŸ’… β€” for use with Tesseract. and what even is a DAWG? it's a compressed, space and time efficient representation of a word list. literally the glow-up your wordlist didn't know it needed. ✨


🌸 OPTIONS 🌸

  • -t β€” verify that a given dawg file is equivalent to a given wordlist. vibe check for your dawg πŸ”
  • -r 1 β€” reverse a word if it contains an RTL character. only the RTL girlies get flipped πŸ™ƒ
  • -r 2 β€” reverse all words. everybody gets flipped, periodt πŸ’€
  • -l <short> <long> β€” produce a file with several dawgs in it, one each for words of length <short>, <short+1>,... <long>. a whole little dawg family 🐢

πŸŽ€ ARGUMENTS πŸŽ€

  • WORDLIST β€” a plain text file in UTF-8, one word per line. keep it clean, bestie, one word per line, that's the whole assignment πŸ“
  • DAWG β€” the output DAWG to write. this is where she goes 🫢
  • lang.unicharset β€” the unicharset of the language. this is the unicharset generated by mftraining(1). yes, that one. don't @ me, just use the one mftraining(1) gave you πŸ’œ

πŸ‘‘ SEE ALSO πŸ‘‘

go check out her friends, they're all slaying in their own lanes:

and the docs, for the lore drop: https://tesseract-ocr.github.io/tessdoc/Training-Tesseract.html 🌈


🌟 COPYING 🌟

Copyright (C) 2006 Google, Inc. Licensed under the Apache License, Version 2.0

like, legal stuff, but make it fashion πŸ’…


🧚 AUTHOR 🧚

The Tesseract OCR engine was written by Ray Smith and his research groups at Hewlett Packard (1985-1995) and Google (2006-2018). absolute legends, we stan πŸ‘‘βœ¨


ok that's the whole page bestie, no gatekeeping here πŸ’–

and that's a wrap! this page is dated 2026-09-28 and it's the wordlist2dawg(1) page β€” go build something iconic with it, mwah πŸ˜˜πŸ’…πŸ“

πŸ“¦ where this page comes from