Nonhuman Personhood and Animal Welfare.

Link. I wrote about this in my college days — about 150 y ago. It’s helpful to imagine defending our "rights" to future AIs.