The idea of the sword-wielding samurai, beholden to a strict ethical code and trained in deadly martial arts, dominates popular conceptions of the samurai. As early as the late …