This implements Japanese headword line templates and all of the associated templates that they called to do categorization and error checking.