WIP - incorporate textbook inference with js exprs