Complex sentence: Molly or Mollie is a female Irish name, originally a pet-name for Mary or Margaret, but used commonly as a name in its own right.
Split into simpler sentences: Molly or Mollie is a pet-name for Mary (or occasionally Margaret). It is sometimes used as a name in its own right.