Skip to content

Highlight gender of nouns in a language, defined by a dictionary file. Designed for German.

Notifications You must be signed in to change notification settings

BlueDrink9/vim-highlight-gender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vim-highlight-gender

Highlight gender of nouns in a language, defined by a dictionary file. Designed for German.

Requirements

3 files, masc.txt, fem.txt and neut.txt, which contain a single noun on each line of the gender specified by the file. How to generate such files is covered in installation.

Installation

  1. Place in runtimepath.
  1. Download dictionary and extract into single file of nouns. Use the method found at AAbouZaid/german-nouns-gender-analyzer.
  2. Separate into separate files
grep {m} dict.cc_nouns_with_gender.txt | sed s/\ {.}//g > masc.txt
grep {f} dict.cc_nouns_with_gender.txt | sed s/\ {.}//g > fem.txt
grep {n} dict.cc_nouns_with_gender.txt | sed s/\ {.}//g > neut.txt
  1. Place extracted dictionary files in [scriptdir]/[language]-nouns/

Config

Language can be changed by setting g:genderToHighlight. Should be the 2-letter lang code (e.g. "de").

Only tested with german using the dict.cc dictionary.

About

Highlight gender of nouns in a language, defined by a dictionary file. Designed for German.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published