A Pittsburgh man was sentenced Friday to 18 to 40 years in prison after pleading guilty, but mentally ill, last month in the killing of his pregnant girlfriend.

James Wilson, 35, who police said is homeless, was sentenced by Allegheny County Common Pleas Judge Kevin Sasinoski in a virtual hearing. Wilson was charged with one count of third degree murder and one count of third degree murder of an unborn child after he killed his girlfriend in a jealous “rage” in an abandoned building in Homewood in March.

Wilson did not know the woman, Brittany Alker, was pregnant when he killed her, the district attorney’s office said last month. Her pregnancy was not revealed until the autopsy.

The murder happened March 12 after the two entered an abandoned structure in the 7000 block of Forest Way, Wilson told investigators. He then began to “think and dwell” on rumors that Ms. Alker was unfaithful to him.

Advertise with us

When she confirmed those suspicions, he strangled her and left her naked in a closet, the affidavit reads. Police later found her while searching the house after Wilson spoke to police and admitted to the killing.

Mick Stinelli: mstinelli@post-gazette.com; 412-263-1869; and on Twitter: @MickStinelli