Up to about the Great War 'gay' was applied as an adjective to female prostitutes --- 'gay women'. The standard prostitute's invitation was 'Are you gay?', meaning 'Are you randy?' The question survived among homosexuals with an altered meaning --- 'Are you one of us?'.