Before Forrest Whitaker in the movie Ghost Dog Samurai, before the humane/socialist movements in the UK and Europe in the mid 1800s, before the European 1700s Enlightenment, The Dog Shogun (1646–1709) enacted national laws in Japan that we now would call “humane legislation.”
“His Laws of Compassion, which made the maltreatment of dogs an offense punishable by death, earned him the nickname Dog Shogun, by which he is still popularly known today. However, Tsunayoshi’s rule coincides with the famed Genroku era, a period of unprecedented cultural growth and prosperity that Japan would not experience again until the mid-twentieth century. It was under Tsunayoshi that for the first time in Japanese history considerable numbers of ordinary townspeople were in a financial position to acquire an education and enjoy many of the amusements previously reserved for the ruling elite.
… (The author) cites the fact that, as shogun, Tsunayoshi not only decreed the registration of dogs, which were kept in large numbers by samurai and posed a threat to the populace, but also the registration of pregnant women and young children to prevent infanticide. He decreed, moreover, that officials take on the onerous tasks of finding homes for abandoned children and caring for sick travelers.”