No, because it can’t be done – a human is needed to decide whether ’ or ‘ (or something else entirely) is meant.
’
‘