What if an Artificial Intelligence program actually becomes sentient?

#artificialintelligence 

Silicon Valley is abuzz about artificial intelligence - software programs that can draw or illustrate or chat almost like a person. One Google engineer actually thought a computer program had gained sentience. A lot of AI experts, though, say there is no ghost in the machine. But what if it were true? That would introduce many legal and ethical questions.