Of course this applies to robots, but not necessarily to animals, where we know they are constructed similarly to ourselves and so likely have feelings similar to ours although there are questions to what degree.
It's actually online here: https://themindi.blogspot.co.uk/2007/02/chapter-8-soul-of-ma...