artisticat1 / nl-syntax-highlighting

Highlight adjectives, nouns, adverbs, verbs, and conjunctions in Obsidian.md
MIT License
97 stars 4 forks source link

FR: Allow other languages than english #6

Open Cutuchiqueno opened 1 year ago

Cutuchiqueno commented 1 year ago

I am a German guy and I write nearly all of my notes in German. I think it would helpful for a lot of people to be able to switch to the most common languages (using different language models for POS tagging in the background)

MMoMM-org commented 1 year ago

second that.

could you please let people select the language via YAML Frontmatter?

language: de

for example for the german language.

this would require the upcoming support from https://github.com/nlp-compromise/de-compromise and similar I would guess.

Don't know how far those German, French, Spanish, and Italian versions are.

merlinuwe commented 1 year ago

Suggestion: One language as the default, YAML for the exception. ;-)

Aphexus commented 1 year ago

Similar, it would go a long way to support most languages.

This likely could be done quite easily by enabling dictionary support:

Look up work in a dictionary, get type of speech, use that as default. When more context dependent info can be determined, update. E.g., some words might be multiple types but by choosing a default or use basic analysis to get a more accurate result would be better than nothing. When compromise gets more languages added then that can be used to fine tune the basic models.

cptvincer commented 1 year ago

I second that.

But i would also like to be able to customize- say if the plugin used a list of words in plaintext we could acess, changes could be made- from adittion and removals to users thenselves using auto-translate or pasting dictionaries/lists from whichever source/language they want.

I would also love 1 extra category: custom. A color for a custom list of words... or a button to add however many more as custom.