Giter Site home page Giter Site logo

vim-wordy's People

Contributors

alerque avatar bcl avatar devlinmallory avatar jalvesaq avatar konfekt avatar reedes avatar rndnoise avatar robinp avatar sunaku avatar telemachus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vim-wordy's Issues

WeakyWord marks wrong word

Hi Reed,

I tried the your example example with weak words:

“I got up and went to work.” (weak)
“I awoke and walked to work.” (better)

and in the better part of the example, walked is also marked as weak. In my opinion that's a fine word.

Show suggestions

Thank you for making vim-wordy.

Would it be possible to display suggestions in tooltips and allow auto-completion (eg :h ins-completion) ?
It is often difficult for non-native english speakers to figure out a better way to formulate a sentence. Such a feature would be greatly appreciated.

Highlight colour

Is there a possible configuration option to make the Wordy word highlighted in a different colour from misspelled words, it would be nice to distinguish between them. I think it might be using the misspell highlight group currently as even when I change the spell highlight colour the Wordy words become the same.

Support for TeX/LaTeX files

I use wordy to improve my scientific writing --- typically, I use the TeX for typesetting mathematical paper, which includes TeX code for mathematical formulas, e.g.

Suppose $a$, $b$ and $c$ are the length of the three sides of a triangle, then 
$$
a+b>c.
$$

where $a$ and so on are called inline formulas, and code with the double dollars are called display formulas, you can find the sample example on the above wiki page.

The problem is that, it seems wordy can't recognize the TeX code as mathematical formula. I learnt from languagetools that we can replace these formula with a single letter X, then the grammar checking works. I hope there will be some ability to process TeX file.


UPDATE

I checked the source code of vim-wordy, it seems has nothing to do with the mathematical formulas, the tex code in my example will mark are and then as weak words, which is defined in the weak.dic, so maybe I should change my problem to a new issue, how to add new rules of dictionary?

Dictionary not being generated

I'm on OS X 10.10.5 using vim version 7.3.

I get this error when I try to run something like :Wordy weak:

Error detected while processing function wordy#init:                                    
line   40:                                                                              
E755: Invalid region in (Personal)/dotfiles/vim/bundle/vim-wordy/spell/weak.en.utf-8.spl

Looking at my file system the spell dir is empty. I assume that means wordy didn't generate the dictionaries for me.

Full vim version:

~/Dropbox (Personal)/projects/commerce $ vim --version
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jul  9 2015 23:58:42)
Compiled by [email protected]
Normal version without GUI.  Features included (+) or not (-):
-arabic +autocmd -balloon_eval -browse +builtin_terms +byte_offset +cindent 
-clientserver -clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments 
-conceal +cryptv +cscope +cursorbind +cursorshape +dialog_con +diff +digraphs 
-dnd -ebcdic -emacs_tags +eval +ex_extra +extra_search -farsi +file_in_path 
+find_in_path +float +folding -footer +fork() -gettext -hangul_input +iconv 
+insert_expand +jumplist -keymap -langmap +libcall +linebreak +lispindent 
+listcmds +localmap -lua +menu +mksession +modify_fname +mouse -mouseshape 
-mouse_dec -mouse_gpm -mouse_jsbterm -mouse_netterm -mouse_sysmouse 
+mouse_xterm +multi_byte +multi_lang -mzscheme +netbeans_intg -osfiletype 
+path_extra -perl +persistent_undo +postscript +printer -profile +python/dyn 
-python3 +quickfix +reltime -rightleft +ruby/dyn +scrollbind +signs 
+smartindent -sniff +startuptime +statusline -sun_workshop +syntax +tag_binary 
+tag_old_static -tag_any_white -tcl +terminfo +termresponse +textobjects +title
 -toolbar +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo 
+vreplace +wildignore +wildmenu +windows +writebackup -X11 -xfontset -xim -xsmp
 -xterm_clipboard -xterm_save 
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
      user exrc file: "$HOME/.exrc"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -D_FORTIFY_SOURCE=0 -Iproto -DHAVE_CONFIG_H -arch i386 -arch x86_64 -g -Os -pipe
Linking: gcc -arch i386 -arch x86_64 -o vim -lncurses

Remove “the” from the weak list

Given that it is the only definite article the English language has, I find it an odd choice to see that on the weak list. In the referenced material, “the” is also not listed as a weak word.

Suggestion: highlight words overused in file

It would be great if there were a way to just highlight the words that are overused in the current file. It could work for the whole buffer and for each paragraph. So if a word were used a lot more than any other in the file it would be highlighted, and if a word were used more than, say, three times in the same paragraph, it would be highlighted too. And then there could be a way to customize how much a word can be used to trigger this and maybe a way to cycle through the most used words, highlighting one at a time.

SpellRare

Regarding the check:

      if has('nvim')
        " Dynamically convert SpellBad words into SpellRare words under NeoVim.
        " See issue 15 for details: https://github.com/reedes/vim-wordy/pull/15

Now Vim also has SpellRare so perhaps better than a check for nvim would be one for the highlight-group SpellRare? Don't know how though. Perhaps check for the exact patch of Vim that brought it in?

Feature request: highlight words that occur with an unusual frequency

In my writing, one bad behavior I have is to use the same word or phrase over and over. Often I don't even realize I'm doing it. It would be nice to have a Wordy feature that looked for words or phrases being used an excessive number of time in comparison to the overall document length, excluding of course small connector words.

I know this is someone of a vague suggestion and would need to be hammered down, but it would be extremely useful to me.

Wordy doesn't work; invalid argument spelllang=en,/.....

When I type :Wordy redundant or basically any wordy command I get something like the following (except maybe I don't get the rebuild):

Reading word file /home/curtis/.vim/plugged/vim-wordy/data/en/redundant.dic...                                          
Compressing word tree...
Compressed 1190 of 3937 nodes; 2747 (69%) remaining
Writing spell file /home/curtis/.vim/plugged/vim-wordy/spell/redundant.en.utf-8.spl...
Done!
Estimated runtime memory use: 13735 bytes
Error detected while processing function wordy#init:
line   60:
E474: Invalid argument: spelllang=en,/home/curtis/.vim/plugged/vim-wordy/spell/redundant.en.utf-8.spl
Press ENTER or type command to continue

Conversion failure when creating word file

OS: Windows 10
Vim Version: Vim 8

Problem description:

When calling a Wordy list for the first time, I get a few

"Conversion failure for word in ~/vimfiles/bundle/vim-wordy/data/en/puffery.dic line [0-9]" messages. (the line and the dictionary will vary)

In every case it seems that the problem is "curly quotes" which appear as gibberish characters within the word that failed to convert. I'm guessing there is a simple fix, but I cannot figure it out.

Wordy calls spellcheck and Wordy check

For some reason when I call Wordy, it highlights both the Wordy check words and the standard spellcheck words, which means it can be difficult to identify Wordy's results at a glance. Is this correct behaviour, and is there any way to only have the Word check words?
Many thanks -- great plugin.

Error: Can't open file for writing

vim-wordy is installed with Home Manager on NixOS. When I try to run :Wordy weak, I get error:

Error detected while processing function wordy#init:
line   31:
E482: Can't open file /nix/store/bk3lvr06rv7nvwpiza59gf6vfia39fp9-vimplugin-vim-wordy-2019-11-22/share/vim-plugins/vim-wordy/data/en/weak.dic.rare for writing: read-only file system

I understand why this error is happening. The Nix store is indeed a read-only file system. However, does vim-wordy need to open its dictionaries for writing? Is it possible to avoid this error by opening these dictionaries read-only?

Alternatives in other programs

I've used vim-wordy in neovim, and I found it to be exceptional. However, I have since moved to Spacemacs (an emacs configuration set up to be similar to vim, but more extensible and with more features set up by default). I can't (haven't found) any similar usage analyzers for emacs, or any other programs. As well, I would like to recommend to some friends who don't know about things like vim a writing analyzer which will work with Microsoft Word and similar word processors. Do you know of anything?

Feedback

I love vim-wordy. I actually started writing my own, but came across yours and promptly threw mine away. Well done.

Here's some things I wish Wordy did better.

  1. The command names are kinda random, or at least they seem to be and I have a hard time remembering them. I wish that Wordy was the prefix instead of the postfix so I could just type :Wordy<tab> and see the list
  2. I wish there was a single dictionary or command that contained the most common or all of modes. I often run through a few of them correcting as I go, but I'd rather just do it in one sweep.

I'm happy to provide a pull request for either of these if you think they would be worthwhile.

How to add new rules of dictionary?

In the issue Support for TeX/LaTeX files , I find that the actually work/function I need to do is add an new rules of dictionary for scientific writing, for e.g., I would like to add the ten rules mentioned here. I try to create a sciwrt.dic as follows:

#https://www.scribendi.com/advice/academic_phrases_your_writing_doesnt_need.en.html
/encoding=utf-8
On the other hand/!
In order to/!
Indeed/!
However\|moreover\|furthermore/!
As well as/!
For a short\|long period of time/!
By using/!
Due to the fact that/!
In relation to/!
In the event that/!

My questions are:

  1. How to make this file work with the command Wordy sciwrt?
  2. I want the rule works with ignoring the capital letter, which means, On the other hand/! will also mark on the other hand as a possible improvement.
  3. Can I use the regular expression in the rule? such asHowever\|moreover\|furthermore/! will find However, moreover and furthermore in a single rule. Otherwise, I need to split it into three independent one.
  4. Can I provide some suggestion for the word? I mean, if we use ]s to jump to a new suggestion, then can we use z= or something to give some suggestion/explanation of this improvement?

Conjugation checks

Hi @reedes,

I'm worried that this project is dead considering the lack of support with #31, but hopefully, that's not the case.
I was wondering if we could get highlights for words wrongly conjugated. Eg "This was overrode" should highlight "overrode" because the "was" before expects the past participle "overriden" instead.
I use Grammarly as a Chrome plugin, and it properly detects this issue

Currently, Wordy doesn't detect this kind of errors. Do you have a suggestion, or know another plugin that handles it?

Externalize the Word Lists as Structured Data

Greetings, fellow writing tools wonk! Big fan of this plugin.

@anseljh and I are lawyers working on a variety of tools to help us draft contracts in a more approachable, understandable style. As part of that, we've come up with a couple data files right in the spirit of the .dic files here:

  1. https://github.com/kemitchell/american-legal-archaisms
  2. https://github.com/kemitchell/wordy-words

I'll definitely convert some of your .dic files for our open-source contract drafting software (https://commonform.github.io), too. I see the MIT license --- thanks for making open source! --- but thought I'd mention, if only to be courteous.

Related: Might you take a pull request to build the .dic files for vim-wordy from structured data tracked in a separate repo? Build steps are kind of a pain, I know, but I'd like to consolidate our efforts. The lists we've created have tended to grow a word or two at a time, as we spot new candidates in our day-to-day. The more folks looking, the better.

Again, thanks for vim-wordy! Really excited to make it part of my everyday Vim.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.