Take the code from https://github.com/wiki-ai/bwds and port it to live in https://github.com/wiki-ai/editquality. The pattern we normally use is to write a new "utility" (https://github.com/wiki-ai/editquality/tree/master/editquality/utilities) command-line frontendscript (https://github.com/wiki-ai/editquality/tree/master/editquality/utilities) which is the command-line frontend. BWDS would become its own package in editquality, the utilities/bwds.py frontend would be a lightweight wrapper that calls into that package.
BWDS could become its own package in editquality, the utilities/bwds.py frontend would be a lightweight wrapper that calls into that packageIt would be great to have unit tests.
As a later enhancement, we might even want to templatize this step as part of the Makefile. Note that the makefile is code-generated from templates/Makefile.j2