Is it possible to Insert an anchored text frame above a text/word?
<p>I want to mark each CharacterStyle in the document by placing an achored text frame above each text/word. I am quite new to scripting in indesign, so any help is much appreciated.</p>

<p>Here is the expected output:</p>

<p><a href="https://i.stack.imgur.com/DVt14.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DVt14.png" alt="enter image description here"></a></p>