{"id":26296040,"url":"https://github.com/mo42/vim-weaselwords","last_synced_at":"2025-05-09T00:50:41.857Z","repository":{"id":53210185,"uuid":"167853624","full_name":"mo42/vim-weaselwords","owner":"mo42","description":"Crafting polished prose by highlighting weasel words and passive use in Vim","archived":false,"fork":false,"pushed_at":"2025-04-25T22:51:55.000Z","size":285,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T01:52:52.588Z","etag":null,"topics":["vim","vim-plugin","writing","writing-style"],"latest_commit_sha":null,"homepage":"https://www.vim.org/scripts/script.php?script_id=6101","language":"Vim Script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mo42.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-27T20:13:40.000Z","updated_at":"2025-04-25T22:51:58.000Z","dependencies_parsed_at":"2024-01-27T00:28:04.915Z","dependency_job_id":"10fe21fa-a512-4c23-b842-493a2e83de0d","html_url":"https://github.com/mo42/vim-weaselwords","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mo42%2Fvim-weaselwords","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mo42%2Fvim-weaselwords/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mo42%2Fvim-weaselwords/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mo42%2Fvim-weaselwords/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mo42","download_url":"https://codeload.github.com/mo42/vim-weaselwords/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253171218,"owners_count":21865282,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["vim","vim-plugin","writing","writing-style"],"created_at":"2025-03-15T04:16:44.648Z","updated_at":"2025-05-09T00:50:41.831Z","avatar_url":"https://github.com/mo42.png","language":"Vim Script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vim-weaselwords\n\nImprove your writing in Vim by highlighting weasel words.\nThe plugin highlights weaselwords in red and passive sentences in blue. Example:\n\n![vim-weaselwords example in Vim editor](example.png)\n\n## Features\n\n- Simply based on word lists that the user can edit or a community can maintain.\n- No need to connect to the internet. Your texts stay in your editor.\n- Experimental passive detection for English and German\n\n### Supported Languages\n- English\n- German\n- French\n- Spanish\n- Dutch (basic)\n\n## Installation\n\n| Plugin Manager | Plugin Section |\n| --- | --- |\n|Vim-Plug | `Plug 'mo42/vim-weaselwords'` |\n|pathogen.vim| `Plug 'mo42/vim-weaselwords'` |\n|Vundle | `Plugin 'mo42/vim-weaselwords'` |\n|Packer | `use 'mo42/vim-weaselwords'` |\n\nThen, run `:PluginInstall` (Vundle) or `:PlugInstall` (Vim-plug) etc.\n\n## Usage\n\n### Highlight weasel words\n\n`call HighlightWeaselWords(spell_language)`\n\nCurrently, this plugin includes English ('en_us') and German ('de_de').\nCalling this function with another languages clears previous highlights. To\nclear existing highlights call with the empty string:\n\n`call HighlightWeaselWords('')`\n\n### Highlight passive sentences:\n\n`call HighlightPassive(g:current_spell_language)`\n\n### Cycling through spell checkers, weasel words and passive\nVimScript snippet for cycling through spell checkers and enabling corresponding weasel\nwords:\n\n```vim\nnnoremap \u003cleader\u003el :call CycleSpellLanguage()\u003ccr\u003e\nlet g:current_spell_language = ''\nfunction CycleSpellLanguage()\n  let languages = ['', 'en_us', 'de_de']\n  let i = (index(languages, g:current_spell_language) + 1) % len(languages)\n  let g:current_spell_language = languages[i]\n  call HighlightWeaselWords(g:current_spell_language)\n  call HighlightPassive(g:current_spell_language)\n  if empty(g:current_spell_language)\n    set nospell\n    echo 'No spell language'\n  else\n    set spell\n    let \u0026spelllang=g:current_spell_language\n    echo 'Current spell language ' . g:current_spell_language\n  endif\nendfunction\n```\n\nLua snippet for cycling through spell checkers and enabling corresponding weasel\nwords:\n```lua\nlocal current_spell_language = \"en_us\"\nlocal languages = { \"en_us\", \"de_de\", \"\" }\nlocal function cycle_spell_language()\n  local index = vim.tbl_contains(languages, current_spell_language) and vim.fn.index(languages, current_spell_language) or 0\n  current_spell_language = languages[(index + 1) % #languages + 1]\n  if current_spell_language == '' then\n    vim.opt.spell = false\n    print('No spell language')\n  else\n    vim.opt.spell = true\n    vim.opt.spelllang = current_spell_language\n    print('Current spell language: ' .. current_spell_language)\n  end\n  vim.fn['HighlightWeaselWords'](current_spell_language)\n  vim.fn['HighlightPassive'](current_spell_language)\nend\n\nvim.keymap.set('n', '\u003cleader\u003el', cycle_spell_language, { desc = \"Cycle through spell languages\" })\n```\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmo42%2Fvim-weaselwords","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmo42%2Fvim-weaselwords","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmo42%2Fvim-weaselwords/lists"}