Added function for endpoint 'fact-names'

I added a small function for the endpoint "fact-names". Nothing special, but since I needed it I thought sharing would be a good thing.