nlp icon indicating copy to clipboard operation
nlp copied to clipboard

FR: Apply CSS class to punctuation when using `Highlight Parts of Speech` & `Highlight Sentences`

Open chrisgrieser opened this issue 3 years ago • 3 comments

~

chrisgrieser avatar Dec 22 '21 14:12 chrisgrieser

adding to this: adding a css class to every sentence as well would also be useful.

This would enable e.g. .Sentence:nth-child(even) to apply alternating highlighting etc.

chrisgrieser avatar Dec 22 '21 17:12 chrisgrieser

Can you add a separate FR for the second comment. Both should be doable :)

SkepticMystic avatar Dec 23 '21 08:12 SkepticMystic

Even more than parts of speech, highlight sentences could really profit from punctuation highlight. It would enable you to analyze sentence structures.

To work nicely, I'd suggest putting . and the other punctuations into different css classes (at least for highlight sentences), the dots are already positioned at the sentence border and might not need highlighting.

chrisgrieser avatar Jan 02 '22 17:01 chrisgrieser