YOU SAID:
Pet your girlfriends head
INTO JAPANESE
あなたのガールフレンドの頭をペット
BACK INTO ENGLISH
Pet the head of your girlfriend
INTO JAPANESE
あなたのガールフレンドの頭をなでます
BACK INTO ENGLISH
I stroked the head of your girlfriend
INTO JAPANESE
私はあなたのガールフレンドの頭を撫で
BACK INTO ENGLISH
I stroked the head of your girlfriend
That didn't even make that much sense in English.