preservim / vim-wordy Goto Github PK
View Code? Open in Web Editor NEWUncover usage problems in your writing
License: Other
Uncover usage problems in your writing
License: Other
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
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.
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
Using https://github.com/FooSoft/md2vim or similar.
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
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?
Hello, in case you have not been aware of it, there is a similar plugin from the dark side at
https://github.com/bnbeckwith/writegood-mode/blob/master/writegood-mode.el
For a ring of three dictionaries ['foo', 'bar', 'baz']
NextWordy => 'foo'
NextWordy => 'bar'
NextWordy => 'baz'
NextWordy => (off)
NextWordy => 'foo'
...and so on
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.
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.
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.
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.
:Wordy<tab>
and see the listI'm happy to provide a pull request for either of these if you think they would be worthwhile.
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.
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?
As an alternative to on-demand usage, provide support for a 'ring' of dictionaries that a user can rapidly cycle among with a key mapping.
First cut on the wordy-ring branch.
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?
Hi,
I think it'd be nice to have another dictionary for clichés, as it doesn't seem to exist.
Here's a list of many cliché expressions.
HTH.
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.
There is no and can you create one?
Bests Matthias
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?
Just a heads up; Looks like every file (I've tried) is missing from the server, ex:
https://ftp.nluug.nl/pub/vim/runtime/spell/problematic.ascii.spl
Maybe these could be hosted/found on github?
Thanks
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?
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.
For example, rather than :WeakWordy
, it should use :Wordy weak
or the ring.
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:
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.
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.
This is needed in the event that the user wants to initialize a domain-specific or language-specific ring.
Example:
wordy#init({'lang': 'de', 'ring': [ 'weak', ... ], })
This initialization would be specific to the buffers for which it was initialized.
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:
Wordy sciwrt
?On the other hand/!
will also mark on the other hand
as a possible improvement.However\|moreover\|furthermore/!
will find However
, moreover
and furthermore
in a single rule. Otherwise, I need to split it into three independent one.]s
to jump to a new suggestion, then can we use z=
or something to give some suggestion/explanation of this improvement?A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.