Grammatically, akikosea just means “he/she makes a mistake.” The verb only tells us it’s a singular human subject; it doesn’t say which person.
We figure it out from context and sentence structure:
- Juma anamsamehe rafiki yake akikosea.
The most natural reading is:
- Juma forgives his friend
- when the friend makes a mistake.
Why?
- The main clause already sets up a typical situation: someone forgives someone else. It’s more natural in real life that the person being forgiven is the one who made the mistake.
- The closest preceding singular human noun phrase is rafiki yake, so it’s the most likely “he” for akikosea to refer back to.
If you wanted to make it absolutely explicit, you could say:
- Juma anamsamehe rafiki yake, rafiki yake akikosea.
(Juma forgives his friend when his friend makes a mistake.)
Or, if you actually meant that Juma is the one making the mistake:
- Juma akifanya makosa, rafiki yake anamsamehe.
(When Juma makes mistakes, his friend forgives him.)