Implements wp term generate, Fixes #389.