NET
39 Now when the Pharisee who had invited him saw this, he said to himself, “If this man were a prophet, he would know who and what kind of woman this is who is touching him, that she is a sinner.”
Darby
39 And the Pharisee who had invited him, seeing it, spoke with himself saying, This [person] if he were a prophet would have known who and what the woman is who touches him, for she is a sinner.
KJV
39 Now when the Pharisee which had bidden him saw [it], he spake within himself, saying, This man, if he were a prophet, would have known who and what manner of woman [this is] that toucheth him: for she is a sinner.