During his decades of public service, Prince Philip developed a reputation for having something of a potty mouth.