Joshua 2:1
[A harlot's house] Harlots and inn-keepers seem to have been called by the same name as no doubt many who followed this mode of life, from their exposed situation, were not the most correct in their morals. Among the ancients, women generally kept houses of entertainment, and among the Egyptians and Greeks this was common. I shall subjoin a few proofs. HERODOTUS, speaking concerning the many differences between Egypt and other countries, and the peculiarity of their laws and customs, expressly says: En toisi hai men gunaikes agorazousi kai kapeleusi; hoi de andres, kat' oikous eontes, huphainousi. "Among the Egyptians the women carry on all commercial concerns, and keep taverns, while the men continue at home and weave."
(from Adam Clarke's Commentary, Electronic Database. Copyright © 1996, 2003, 2005, 2006 by Biblesoft, Inc. All rights reserved.)
Entertainment as it is used here refers to hospitality. i.e. entertain angels unawares.