Hello!
Check the morphologic information at:
https://community.languagetool.org/analysis/analyzeText
changing it to Portuguese.
Write: “comprá-lo” and it will show the postags:
comprá comprar VMX0000
- - _PUNCT
lo o PP3MSA00
I hope this helps.