The ruling said Massachusetts courts can determine whether a couple is in a substantive dating relationship by considering the nature, frequency and length of their communications and if either person has ended the relationship.

“Clearly the court took the case … on its own initiative because, I think, they wanted to address this issue of electronic dating and whether, under the statute, electronic communication could form the basis of a substantive dating relationship — which is one of the basis under the statute which gives the court the authority to issue an abuse order,” said lawyer Mark Engel, who represented Compton in the lower court.

Robert Peck, an attorney for the girl’s father, said in a telephone interview from Salem that the decision recognizes that more people are using various forms of social media to communicate and establish relationships in real time.

What the Supreme Judicial Court “has done is to bring the reality of today into clear focus” for applications under domestic abuse laws to relationships formed by previously nontraditional means such as the Internet, Skype, Facebook, and instant messaging, Peck said.

The girl’s parents discovered the communication and her father secured the restraining order, which was served to Compton after he arrived at an inn near the family home in November.

The Supreme Judicial Court ruled that the man’s conduct did not rise to the level of abuse because he did not harm or try to harm her physically, and did not cause the girl to engage in a sexual relationship by force, threat or duress. Those standards are set under a state’s domestic abuse law that enables adults, children and others living in a home to secure a restraining order directing someone to refrain from abuse or contact.

The court also found that the teen was capable of agreeing to sex because she is older than the state consent age of 16.

“The defendant’s passing references in his electronic communications with the daughter implying that he might furnish her with alcohol, while understandably reprehensible to the father, is not evidence suggesting physical abuse or evidence that the defendant planned to give alcohol to her in order to have involuntary sexual relations with her, certainly a form of physical abuse,” the court said. “We conclude that this conduct does not meet the definition of ‘abuse'” under the state domestic abuse law.