You could use some notation to signify which words should be bolded, and then have a transformer that would find ranges to bold and add appropriate attributes.
word •word• word word
מילה מילה •מילה• מילה מילה
In these two sentences, I use the character •
to signify that the word in between should be bold. I can then use rangeOfString:options:range:
to iterate and find all ranges to bold and insert an attribute accordingly.