SkepticMystic / nlp

GNU General Public License v3.0
69 stars 5 forks source link

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

Open chrisgrieser opened 2 years ago

chrisgrieser commented 2 years ago

~

chrisgrieser commented 2 years ago

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.

SkepticMystic commented 2 years ago

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

chrisgrieser commented 2 years ago

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.