A Connecticut man has been arrested on allegations he coached his eight-year-old neighbour to swear and make racial slurs for a video he posted on YouTube.

According to police, the video shows the boy using obscenities and making racial slurs in his front yard while a man's voice is heard in the background encouraging him.

The 24-year-old man was charged Tuesday with impairing the morals of a child, but later posted $2,500 bail, the Connecticut Post reported.

The man told the Post that what the boy said on the video was funny.