<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Looking for a freelancer to develop a plugin: Misspelled Word Counter]]></title><description><![CDATA[<p dir="auto">I need a plugin for Notepad++ that tells me:</p>
<ol>
<li>The total number of words in the document</li>
<li>The number of unique words</li>
<li>The total number of non-misspelled words</li>
<li>The total number of misspelled words, both as a number and as a percentage of the total number of words in the document</li>
<li>The number of unique misspelled words, both as a number and as a percentage of the total number of words in the document.</li>
</ol>
<p dir="auto">For example, in this document, you can see that there are 3 misspelled words, but only 2 unique misspelled words:<br />
<img src="/assets/uploads/files/1594497598196-misspelled1.png" alt="misspelled1.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">The plugin should be able to produce the following window after pressing a keyboard shortcut:<br />
<img src="/assets/uploads/files/1594497608079-misspelled2.png" alt="misspelled2.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">If you can manage to show the “Unique misspelled words” information in real time, while I type, even better!!</p>
<p dir="auto">I’ve posted this project on <a href="http://Freelancer.com" rel="nofollow ugc">Freelancer.com</a>:<br />
<a href="https://www.freelancer.com/projects/coding/Notepad-plugin-Misspelled-Words-Report/proposals" rel="nofollow ugc">https://www.freelancer.com/projects/coding/Notepad-plugin-Misspelled-Words-Report/proposals</a></p>
<p dir="auto">Feel free to PM me here or via Freelancer. I look forward to finding someone to develop this! I’m a Spanish Tutor on italki and I write short stories for my students.</p>
<p dir="auto"><strong>To the mods:</strong> Hi! Sorry if this is the wrong place for this. I looked around but could not find the forum rules.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/19688/looking-for-a-freelancer-to-develop-a-plugin-misspelled-word-counter</link><generator>RSS for Node</generator><lastBuildDate>Tue, 17 Nov 2026 08:47:26 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/19688.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 11 Jul 2020 20:03:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Looking for a freelancer to develop a plugin: Misspelled Word Counter on Sat, 01 Aug 2020 00:03:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> Thanks! I’ll check it out.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56375</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56375</guid><dc:creator><![CDATA[Miguel Lescano]]></dc:creator><pubDate>Sat, 01 Aug 2020 00:03:56 GMT</pubDate></item><item><title><![CDATA[Reply to Looking for a freelancer to develop a plugin: Misspelled Word Counter on Thu, 30 Jul 2020 17:31:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/miguel-lescano" aria-label="Profile: Miguel-Lescano">@<bdi>Miguel-Lescano</bdi></a></p>
<p dir="auto">Sorry for the delay I got distracted by some other cool projects.<br />
I opened a <a href="https://github.com/Ekopalypse/NppPythonScripts" rel="nofollow ugc">github page</a> to release some of my scripts and I’d say<br />
we use the issue tracker on github to avoid cluttering the forum here.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56329</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56329</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Thu, 30 Jul 2020 17:31:57 GMT</pubDate></item><item><title><![CDATA[Reply to Looking for a freelancer to develop a plugin: Misspelled Word Counter on Wed, 22 Jul 2020 00:48:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> Yes, my comments would not be too long. Just explanations and descriptions.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56162</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56162</guid><dc:creator><![CDATA[Miguel Lescano]]></dc:creator><pubDate>Wed, 22 Jul 2020 00:48:37 GMT</pubDate></item><item><title><![CDATA[Reply to Looking for a freelancer to develop a plugin: Misspelled Word Counter on Tue, 21 Jul 2020 10:37:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/miguel-lescano" aria-label="Profile: Miguel-Lescano">@<bdi>Miguel-Lescano</bdi></a> said in <a href="/post/56121">Looking for a freelancer to develop a plugin: Misspelled Word Counter</a>:</p>
<blockquote>
<p dir="auto">I guess the line can be as long as I want it to be, right?</p>
</blockquote>
<p dir="auto">Theoretically yes, but there is a known problem with szintilla and the handling of “really” long lines but I do not assume that your comments<br />
are longer than 1000 characters, right?</p>
<p dir="auto">Ok, I give it a try.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56127</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56127</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Tue, 21 Jul 2020 10:37:54 GMT</pubDate></item><item><title><![CDATA[Reply to Looking for a freelancer to develop a plugin: Misspelled Word Counter on Tue, 21 Jul 2020 01:40:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> Hi!<br />
Yes, my plan is to have comment-only lines that could start with //, so the “relatively easy” option is what I’m looking for. I guess the line can be as long as I want it to be, right?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56121</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56121</guid><dc:creator><![CDATA[Miguel Lescano]]></dc:creator><pubDate>Tue, 21 Jul 2020 01:40:33 GMT</pubDate></item><item><title><![CDATA[Reply to Looking for a freelancer to develop a plugin: Misspelled Word Counter on Sat, 18 Jul 2020 14:22:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/miguel-lescano" aria-label="Profile: Miguel-Lescano">@<bdi>Miguel-Lescano</bdi></a></p>
<p dir="auto">The easiest way would be if the comment always starts at the<br />
beginning of a line. But it can also be solved if the comment appears at<br />
the end. What wouldn’t be so nice is if something like text comment text<br />
is thought of or comment goes over several lines without the<br />
new lines having a comment character at the beginning.</p>
<p dir="auto">Assuming we use <code>//</code> as the “comment sign”</p>
<p dir="auto">Relatively easy</p>
<pre><code class="language-z">// Comment
Text  // Comment
</code></pre>
<p dir="auto">Not so easy:</p>
<pre><code class="language-z">// Comment
still comment //
Text

Text //comment
comment// Text
</code></pre>
<p dir="auto">What do you think?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56030</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56030</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Sat, 18 Jul 2020 14:22:47 GMT</pubDate></item><item><title><![CDATA[Reply to Looking for a freelancer to develop a plugin: Misspelled Word Counter on Sat, 18 Jul 2020 14:05:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> Yes, this would kinda break things with DSpellCheck, but it’s not a problem.<br />
I’d love to be able to add notes between Spanish dialogues. The notes would not be actually recorded for my students. I have a YouTube channel where I publish recordings of my stories:<br />
<a href="https://www.youtube.com/watch?v=XfpbG_5Im9Q" rel="nofollow ugc">https://www.youtube.com/watch?v=XfpbG_5Im9Q</a></p>
<p dir="auto">In the future, I plan to learn to use Unreal Engine to create short animations, so the notes would also include scene descriptions.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56028</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56028</guid><dc:creator><![CDATA[Miguel Lescano]]></dc:creator><pubDate>Sat, 18 Jul 2020 14:05:48 GMT</pubDate></item><item><title><![CDATA[Reply to Looking for a freelancer to develop a plugin: Misspelled Word Counter on Fri, 17 Jul 2020 17:54:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/miguel-lescano" aria-label="Profile: Miguel-Lescano">@<bdi>Miguel-Lescano</bdi></a> said in <a href="/post/55989">Looking for a freelancer to develop a plugin: Misspelled Word Counter</a>:</p>
<blockquote>
<p dir="auto">I’ve been using your script today to write the cues for my very first crossword puzzle for Spanish learners:</p>
</blockquote>
<p dir="auto">Cool :-)</p>
<blockquote>
<p dir="auto">BTW, I have a couple of special request, so feel free to charge me for this. I know this is taking from your time, and I’m grateful for it:</p>
</blockquote>
<p dir="auto">As long as I have time to do it and enjoy making it work, no problem.</p>
<blockquote>
<p dir="auto">Is there a way to add comment lines that are completely ignored from the calculation? I mean, not even counted in the word total. Maybe lines that start with // or with an asterisk or something like that.</p>
</blockquote>
<p dir="auto">Yes, this is possible, but that will mean that misspelled-word-synchronization with DSpellCheck isn’t working anymore, correct?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/56010</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/56010</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Fri, 17 Jul 2020 17:54:59 GMT</pubDate></item><item><title><![CDATA[Reply to Looking for a freelancer to develop a plugin: Misspelled Word Counter on Fri, 17 Jul 2020 09:04:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> said in <a href="/post/55895">Looking for a freelancer to develop a plugin: Misspelled Word Counter</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/miguel-lescano" aria-label="Profile: Miguel-Lescano">@<bdi>Miguel-Lescano</bdi></a></p>
<p dir="auto">Maybe you could convince <a href="https://github.com/Predelnik/DSpellCheck" rel="nofollow ugc">predelnik</a> to implement it!? My approach could serve as a template.<br />
Maybe another tab called Statistics under Settings… with an option to display this in realtime in the DocType field!?</p>
</blockquote>
<p dir="auto">I agree with this, you could request a new feaure here:<br />
<a href="https://github.com/Predelnik/DSpellCheck/issues" rel="nofollow ugc">https://github.com/Predelnik/DSpellCheck/issues</a></p>
<p dir="auto">So like “feature request: count misspelled words” or “report/stats of misspelled words” or something like that, and refer to this forum thread.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55992</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55992</guid><dc:creator><![CDATA[Bas de Reuver]]></dc:creator><pubDate>Fri, 17 Jul 2020 09:04:36 GMT</pubDate></item><item><title><![CDATA[Reply to Looking for a freelancer to develop a plugin: Misspelled Word Counter on Fri, 17 Jul 2020 00:29:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> Thanks a lot! I can’t find the typo to save my life…<br />
I’ve been using your script today to write the cues for my very first crossword puzzle for Spanish learners:<br />
<a href="http://crossword.info/spanishinput/Spanish_Input_Level_1_Puzzle_001" rel="nofollow ugc">http://crossword.info/spanishinput/Spanish_Input_Level_1_Puzzle_001</a><br />
All the cues use only words from the top 1000, except for proper names.</p>
<p dir="auto">BTW, I have a couple of special request, so feel free to charge me for this. I know this is taking from your time, and I’m grateful for it:<br />
Is there a way to add comment lines that are completely ignored from the calculation? I mean, not even counted in the word total. Maybe lines that start with // or with an asterisk or something like that.</p>
<p dir="auto">Yes, I’ve been thinking about the All caps letters thing… Sometimes it does make sense to treat them the same as the other words. Still thinking…</p>
<p dir="auto">Thanks a lot!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55989</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55989</guid><dc:creator><![CDATA[Miguel Lescano]]></dc:creator><pubDate>Fri, 17 Jul 2020 00:29:00 GMT</pubDate></item><item><title><![CDATA[Reply to Looking for a freelancer to develop a plugin: Misspelled Word Counter on Thu, 16 Jul 2020 19:17:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/miguel-lescano" aria-label="Profile: Miguel-Lescano">@<bdi>Miguel-Lescano</bdi></a></p>
<p dir="auto">I found the two issues.<br />
First, a typo and second, a greeting from the past.</p>
<p dir="auto">The typo is responsible for the behavior when no more characters are attached to a word.</p>
<pre><code class="language-py">editor.research('[[:alpha:]]+(?=[\h|[:punct:]|\R|\Z])', lambda m: words.append(m.group()))
</code></pre>
<p dir="auto">must be</p>
<pre><code class="language-py">editor.research('[[:alpha:]]+(?=\h|[[:punct:]]|\R|\Z)', lambda m: words.append(m.group()))
</code></pre>
<p dir="auto">The second problem has to do with the fact that Python2 and Python3 handle Unicode text differently.<br />
Since I have been working only with Python3 for quite some time now I completely ignored the fact that for example ‘Ü’ is a bytes object in Python2 and a Unicode object in Python3.<br />
This means that we have to work with Unicode in our code as well, so that functions like .lower() work.</p>
<pre><code class="language-py">from Npp import notepad, editor, NOTIFICATION, SCINTILLANOTIFICATION, STATUSBARSECTION, MODIFICATIONFLAGS
import os


class WORD_CHECKER:
    
    def __init__(self):
        print('__init__')
        self.report = ('Total: {0:&lt;5}  '
                       'Unique: {1:&lt;5}  '
                       'Total non-misspelled: {2:&lt;5}({3:.1%})  '
                       'Total misspelled: {4:&lt;4}({5:.1%})  '
                       'Unique misspelled: {6:&lt;4}({7:.1%})')

        editor.callbackSync(self.on_modified, [SCINTILLANOTIFICATION.MODIFIED])
        notepad.callback(self.on_buffer_activated, [NOTIFICATION.BUFFERACTIVATED])
        current_dict_path = os.path.join(notepad.getPluginConfigDir(), 'Hunspell')
        current_dict_file = os.path.join(current_dict_path, 'ES-5000.dic')
        with open(current_dict_file, 'r') as f:
            self.current_dict = [word.decode('utf8')
                                 for word in f.read().splitlines()[1:]]   # skip length entry

        self.DEBUG_MODE = False
        self.on_buffer_activated({})  # must be last line here as it triggers check_words
        

    def check_words(self):
        words = []
        editor.research('[[:alpha:]]+(?=\h|[[:punct:]]|\R|\Z)',
                        lambda m: words.append(m.group().decode('utf8')))
        if self.DEBUG_MODE:
            print(u'words contains:\n  {}'.format('  '.join(words)))
            
        error_words = [word.lower() 
                       for word in words 
                       if word.lower() not in self.current_dict and    # insensitive word check
                       not word.isupper()  # ignore all uppercase only words
                       ]
        if self.DEBUG_MODE:
            print(u'error_words contains:\n  {}'.format('  '.join(error_words)))
            print(u'error_words unique contains:\n  {}'.format('  '.join(set(error_words))))
        
        total = len(words)
        unique = len(set(words))
        misspelled = len(error_words)
        misspelled_unique = len(set(error_words))
        notepad.setStatusBar(STATUSBARSECTION.DOCTYPE, 
                             self.report.format(total,
                                                unique,
                                                total-misspelled,  # non-misspelled
                                                (float(total-misspelled) / total) if misspelled else 1,  # non-misspelled %
                                                misspelled,
                                                (float(misspelled) / total) if misspelled else 0,
                                                misspelled_unique,
                                                (float(misspelled_unique) / total) if misspelled_unique else 0))


    def on_modified(self, args):
        if ((args['modificationType'] &amp; MODIFICATIONFLAGS.INSERTTEXT) or 
            (args['modificationType'] &amp; MODIFICATIONFLAGS.DELETETEXT)):
            self.check_words()


    def on_buffer_activated(self, args):
        self.check_words()


WORD_CHECKER()
</code></pre>
<p dir="auto">The new code has an additional DEBUG_MODE, which, if set to True,<br />
will print the content of words-, error_words- and unique error_words-list<br />
to the python script console.</p>
<p dir="auto">At the moment I am checking if it is possible or if it makes sense to read the DSpellCheck.ini to apply the settings automatically if necessary.<br />
For example one might treat <em>ALL Letters Capital</em> as misspelled words.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55970</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55970</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Thu, 16 Jul 2020 19:17:30 GMT</pubDate></item><item><title><![CDATA[Reply to Looking for a freelancer to develop a plugin: Misspelled Word Counter on Thu, 16 Jul 2020 10:36:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/miguel-lescano" aria-label="Profile: Miguel-Lescano">@<bdi>Miguel-Lescano</bdi></a></p>
<p dir="auto">Good testing, I will check that as soon as I get home.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55942</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55942</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Thu, 16 Jul 2020 10:36:56 GMT</pubDate></item><item><title><![CDATA[Reply to Looking for a freelancer to develop a plugin: Misspelled Word Counter on Wed, 15 Jul 2020 22:28:07 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a>… Just wanted to report that I’ve been testing what kinds of letters with diacritics trigger a false positive when they’re the first letter <em>and</em> a capital letter:</p>
<p dir="auto">Accent marks (acute):<br />
Árbol, Él</p>
<p dir="auto">Tilde over the N:<br />
Ñaño</p>
<p dir="auto">The umlaut:<br />
Über<br />
(We do have the umlaut in Spanish, but I’ve never seen it at the start of a word, so I used a German word here)</p>
<p dir="auto">Once again, thanks a lot for all the time you’ve devoted to this script!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55935</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55935</guid><dc:creator><![CDATA[Miguel Lescano]]></dc:creator><pubDate>Wed, 15 Jul 2020 22:28:07 GMT</pubDate></item><item><title><![CDATA[Reply to Looking for a freelancer to develop a plugin: Misspelled Word Counter on Wed, 15 Jul 2020 22:18:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> Me again…<br />
I also discovered that, if I do not type a period, or a space, after a word, but instead press “Enter” or just do nothing and stop writing, that word is not taken into account at all.<img src="/assets/uploads/files/1594851467961-nothing-after-word.png" alt="nothing after word.PNG" class=" img-fluid img-markdown" /> <img src="/assets/uploads/files/1594851481409-finish-line-with-enter.png" alt="finish-line-with-enter.PNG" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/55934</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55934</guid><dc:creator><![CDATA[Miguel Lescano]]></dc:creator><pubDate>Wed, 15 Jul 2020 22:18:17 GMT</pubDate></item><item><title><![CDATA[Reply to Looking for a freelancer to develop a plugin: Misspelled Word Counter on Wed, 15 Jul 2020 22:03:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> Hi! I found the problem. Words that start with a capital letter that has a diacritic are flagged as false positives. For example, Él.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55933</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55933</guid><dc:creator><![CDATA[Miguel Lescano]]></dc:creator><pubDate>Wed, 15 Jul 2020 22:03:29 GMT</pubDate></item><item><title><![CDATA[Reply to Looking for a freelancer to develop a plugin: Misspelled Word Counter on Wed, 15 Jul 2020 20:25:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> Hi! I’ve been testing the script and I noticed, with this txt file, that the script reports 23 misspelled words (7 unique), but both DSpellCheck and a quick visual count tell me there are just 22 misspellings (6 unique). Maybe I’m doing something wrong? Could you please give this a look?</p>
<p dir="auto">Here’s the TXT file. This time I zipped it so it does not lose the formatting:<br />
<a href="https://www.spanishinput.com/uploads/1/1/9/0/11905267/lagrimas_de_acero_new.zip" rel="nofollow ugc">https://www.spanishinput.com/uploads/1/1/9/0/11905267/lagrimas_de_acero_new.zip</a></p>
<p dir="auto">And here’s the dictionary I’m using:<br />
<a href="https://www.spanishinput.com/uploads/1/1/9/0/11905267/es-5000.zip" rel="nofollow ugc">https://www.spanishinput.com/uploads/1/1/9/0/11905267/es-5000.zip</a></p>
<p dir="auto">And here are my DSpellCheck settings. Thanks again for all your help!<br />
<img src="/assets/uploads/files/1594844731739-dspellchecksettings.png" alt="DSpellCheckSettings.PNG" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/55929</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55929</guid><dc:creator><![CDATA[Miguel Lescano]]></dc:creator><pubDate>Wed, 15 Jul 2020 20:25:44 GMT</pubDate></item><item><title><![CDATA[Reply to Looking for a freelancer to develop a plugin: Misspelled Word Counter on Wed, 15 Jul 2020 12:12:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/miguel-lescano" aria-label="Profile: Miguel-Lescano">@<bdi>Miguel-Lescano</bdi></a></p>
<p dir="auto">Thank you, yes you are welcome to publish this for free and there is no copyright claim from my side.<br />
It is not necessary to mention me, but if you should mention me, please use my Ekopalypse pseudonym.</p>
<p dir="auto">I hope that this can be helpful for you and others, but I’m almost sure that with other languages<br />
and/or other DSpellCheck settings this will not always achieve the same results as DSpellCheck.<br />
Actually this feature would be better available in DSpellCheck I guess.<br />
Maybe you could convince <a href="https://github.com/Predelnik/DSpellCheck" rel="nofollow ugc">predelnik</a> to implement it!? My approach could serve as a template.<br />
Maybe another tab called Statistics under Settings… with an option to display this in realtime in the DocType field!?</p>
<p dir="auto">This brings us to another point.<br />
I noticed that DSpellCheck produces an exception when you wants to start a Python script via the toolbar.<br />
This will not happen if the script is started from either the Scripts submenu, the PythonScript main menu or via KeyboardShortcut.<br />
I opened an issue for this <a href="https://github.com/Predelnik/DSpellCheck/issues/219" rel="nofollow ugc">here</a>.</p>
<p dir="auto">Otherwise I can only wish you good luck for your stories.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55895</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55895</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Wed, 15 Jul 2020 12:12:48 GMT</pubDate></item><item><title><![CDATA[Reply to Looking for a freelancer to develop a plugin: Misspelled Word Counter on Tue, 14 Jul 2020 21:52:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> THANKS A LOT!!! It now exactly matches the number of misspellings reported by DSpellcheck!</p>
<p dir="auto">The txt file I uploaded is UTF-8 on my PC. Maybe uploading it to Weebly changed the format. I should have zipped it.</p>
<p dir="auto">BTW, I actually like the fact that you’re ignoring numbers and words with numbers from the total words, because when I type those I don’t want them to influence the statistics.</p>
<p dir="auto">This will make it a LOT easier for me to write stories for my students.</p>
<p dir="auto">I’d love to credit you in my website for writing this amazing tool. Should I credit you as “Ekopalypse” or do you prefer something else? May I post the script to my website for free so other language teachers can use it? Of course, crediting you. I’ll also post a video to my channel explaining why to use it and how to use it.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55888</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55888</guid><dc:creator><![CDATA[Miguel Lescano]]></dc:creator><pubDate>Tue, 14 Jul 2020 21:52:21 GMT</pubDate></item><item><title><![CDATA[Reply to Looking for a freelancer to develop a plugin: Misspelled Word Counter on Tue, 14 Jul 2020 21:24:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/miguel-lescano" aria-label="Profile: Miguel-Lescano">@<bdi>Miguel-Lescano</bdi></a></p>
<p dir="auto">ok, after some more research I guess I can confirm my opinion on<br />
affix files. They are more or less rule files. In your case there is only<br />
a few lines needed and these can be the same for all your 5 aff<br />
files. If you want to go into detail about the file format, <a href="https://github.com/hunspell/hunspell/releases/download/v1.7.0/hunspell5.pdf" rel="nofollow ugc">here</a> the<br />
link to the description.</p>
<p dir="auto">My aff file looks like this</p>
<pre><code class="language-z">SET UTF-8
FLAG UTF-8
TRY aeroinsctldumpbgfvhzóíjáqéñxyúükwAEROINSCTLDUMPBGFVHZÓÍJÁQÉÑXYÚÜKW
</code></pre>
<p dir="auto">Here the updated script which gets the same result as DSpellCheck on the example text I used earlier.</p>
<pre><code class="language-py">from Npp import notepad, editor, NOTIFICATION, SCINTILLANOTIFICATION, STATUSBARSECTION, MODIFICATIONFLAGS
import os



class WORD_CHECKER(object):
    
    def __init__(self):
        self.report = ('Total: {0:&lt;5}  '
                       'Unique: {1:&lt;5}  '
                       'Total non-misspelled: {2:&lt;5}({3:.1%})  '
                       'Total misspelled: {4:&lt;4}({5:.1%})  '
                       'Unique misspelled: {6:&lt;4}({7:.1%})')

        editor.callbackSync(self.on_modified, [SCINTILLANOTIFICATION.MODIFIED])
        notepad.callback(self.on_buffer_activated, [NOTIFICATION.BUFFERACTIVATED])
        current_dict_path = os.path.join(notepad.getPluginConfigDir(), 'Hunspell')
        current_dict_file = os.path.join(current_dict_path, 'Spanish TOP972.dic')
        with open(current_dict_file, 'r') as f:
            self.current_dict = f.read().splitlines()[1:]   # skip length entry
        self.on_buffer_activated({})


    def check_words(self):
        words = []
        editor.research('[[:alpha:]]+(?=[\h|[:punct:]|\R|\Z])', lambda m: words.append(m.group()))
        error_words = [word.lower() 
                       for word in words 
                       if word.lower() not in self.current_dict and    # insensitive word check
                       not word.isupper()  # ignore all uppercase only words
                       ]
        
        total = len(words)
        unique = len(set(words))
        misspelled = len(error_words)
        misspelled_unique = len(set(error_words))
        notepad.setStatusBar(STATUSBARSECTION.DOCTYPE, 
                             self.report.format(total,
                                                unique,
                                                total-misspelled,  # non-misspelled
                                                (float(total-misspelled) / total) if misspelled else 1,  # non-misspelled %
                                                misspelled,
                                                (float(misspelled) / total) if misspelled else 0,
                                                misspelled_unique,
                                                (float(misspelled_unique) / total) if misspelled_unique else 0))


    def on_modified(self, args):
        if ((args['modificationType'] &amp; MODIFICATIONFLAGS.INSERTTEXT) or 
            (args['modificationType'] &amp; MODIFICATIONFLAGS.DELETETEXT)):
            self.check_words()


    def on_buffer_activated(self, args):
        self.check_words()


WORD_CHECKER()
</code></pre>
<p dir="auto">You stated that you want to run 5 copies of the script.<br />
If you run it in 5 different npp instances, then yes, that might<br />
be a solution but if you want to run this script in an npp instance with 5 different documents then it won’t do what you<br />
probably expect.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55886</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55886</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Tue, 14 Jul 2020 21:24:56 GMT</pubDate></item><item><title><![CDATA[Reply to Looking for a freelancer to develop a plugin: Misspelled Word Counter on Tue, 14 Jul 2020 11:51:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/miguel-lescano" aria-label="Profile: Miguel-Lescano">@<bdi>Miguel-Lescano</bdi></a></p>
<p dir="auto">I have already found two problems, replacing the regex string <code>\w+</code> with <code>[[:alpha:]]+</code><br />
should eliminate many false positives and in addition, creating an<br />
insensitive error_words list will reduce the number of unique errors,<br />
because then Amèrica and amèrica are the same, which brings me to<br />
the first question, which encoding do you use?</p>
<p dir="auto">When I open the uploaded file, I see the following</p>
<p dir="auto"><img src="/assets/uploads/files/1594726640550-b6268434-d953-4d5a-bc2e-0585e85421ed-image.png" alt="b6268434-d953-4d5a-bc2e-0585e85421ed-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">If possible, you should use utf8 encoded files.</p>
<p dir="auto">As far as the aff files are concerned and as far as I understand it, they<br />
are basically rule files that the hunspell engine tells how to treat the file<br />
and how it should treat certain rules for words with special notation.</p>
<p dir="auto">But treat this information with skepticism, since I only started to<br />
investigate hunspell yesterday.<br />
I will try to see if I can find more information about the aff format,<br />
maybe this will help to get the same results as hunspell itself.</p>
<p dir="auto">By the way, if I were you, I would use the spanish.aff as a template for all your TOP dictionaries.</p>
<blockquote>
<p dir="auto">The donation buttons didn’t play nice with my Chrome cookies, so I had to open an incognito window.</p>
</blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/donho" aria-label="Profile: donho">@<bdi>donho</bdi></a>, maybe something you are interested in??</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55851</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55851</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Tue, 14 Jul 2020 11:51:51 GMT</pubDate></item><item><title><![CDATA[Reply to Looking for a freelancer to develop a plugin: Misspelled Word Counter on Tue, 14 Jul 2020 00:45:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> Thanks for the tips!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55840</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55840</guid><dc:creator><![CDATA[Miguel Lescano]]></dc:creator><pubDate>Tue, 14 Jul 2020 00:45:55 GMT</pubDate></item><item><title><![CDATA[Reply to Looking for a freelancer to develop a plugin: Misspelled Word Counter on Tue, 14 Jul 2020 00:39:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> Thanks a lot! It’s fantastic! I just had to change the name of the dictionary file inside the .py file and it worked!</p>
<p dir="auto">Yes, my customized dictionary files are in C:\Users\Miguel\AppData\Roaming\Notepad++\plugins\config\Hunspell</p>
<p dir="auto">And yes, it has one word per line, starting with the number of words. Here’s how it looks:<br />
<img src="/assets/uploads/files/1594684394918-top-1000.png" alt="Top 1000.PNG" class=" img-fluid img-markdown" /></p>
<p dir="auto">Your tip to just change the name of the .aff and the .dic files worked! The weird thing is, if I copy the .aff from arabic and just rename it, say, “Spanish TOP1000”, it works, but if I change the contents of the .aff file it treats all words with diacritics as misspellings. Strange. I guess I’ll just keep the content of the arabic .aff file. What’s supposed to be inside the .aff, anyway? Without an .aff file I noticed the dictionary won’t appear, and if I just type “Spanish” inside the .aff file it, again, marks all words with diacritics as misspellings.</p>
<p dir="auto">I don’t switch a lot between dictionaries when editing a story. I decide which level I’m going for and just go for it, unless I decide the story is too difficult to write at the level I chose and change the level. But I see I can just make 5 copies of the script and give them different names pointing to different dictionaries.</p>
<p dir="auto">Having all documents affected is not a problem. I’m very unlikely to be working on two stories for different levels at the same time.</p>
<p dir="auto">And yes, I noticed it calculates misspellings a bit different. The differences from DSpellCheck default settings are that DSpellCheck ignores:<br />
-Numbers<br />
-Words containing numbers<br />
-ALL CAPS words, such as USA or V&amp;M.<br />
-Words containing _</p>
<p dir="auto">There also seem to be some non-visible characters being counted as misspellings. The file I’m linking to here has 37 misspellings, but the script counts 38.<br />
<a href="https://www.spanishinput.com/uploads/1/1/9/0/11905267/37_misspellings.txt" rel="nofollow ugc">https://www.spanishinput.com/uploads/1/1/9/0/11905267/37_misspellings.txt</a></p>
<p dir="auto">Thanks a lot for your help! I’ve just donated to the link you provided. The donation buttons didn’t play nice with my Chrome cookies, so I had to open an incognito window.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55839</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55839</guid><dc:creator><![CDATA[Miguel Lescano]]></dc:creator><pubDate>Tue, 14 Jul 2020 00:39:19 GMT</pubDate></item><item><title><![CDATA[Reply to Looking for a freelancer to develop a plugin: Misspelled Word Counter on Mon, 13 Jul 2020 21:15:12 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/miguel-lescano" aria-label="Profile: miguel-lescano">@<bdi>miguel-lescano</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">Did you notice that, since the version <strong><code>1.4.16</code></strong> of <strong>DSpellCheck</strong>, a <strong>new</strong> option to <strong>bookmark</strong> all lines, containing <strong>misspelled</strong> words, is available for <strong>further</strong> process, via <strong><code>Search &gt; Bookmark</code></strong> ?</p>
<ul>
<li>Support <strong>bookmarking</strong> lines containing <strong>misspelled</strong> words via additional actions</li>
</ul>
<hr />
<p dir="auto">Also, since the <strong><code>1.14.0</code></strong> version, this <strong>hidden</strong> option, below, could be of some <strong>interest</strong> to you :</p>
<ul>
<li>Add <strong>hidden</strong> option <strong><code>Word_Minimum_Length</code></strong> to <strong>disable</strong> checking of words with length <strong>less</strong> or <strong>equal</strong> to its value</li>
</ul>
<hr />
<p dir="auto">For any <strong><code>DSpellCheck</code></strong> release, refer to :</p>
<p dir="auto"><a href="https://github.com/Predelnik/DSpellCheck/releases" rel="nofollow ugc">https://github.com/Predelnik/DSpellCheck/releases</a></p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55838</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55838</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Mon, 13 Jul 2020 21:15:12 GMT</pubDate></item><item><title><![CDATA[Reply to Looking for a freelancer to develop a plugin: Misspelled Word Counter on Mon, 13 Jul 2020 20:53:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/miguel-lescano" aria-label="Profile: Miguel-Lescano">@<bdi>Miguel-Lescano</bdi></a></p>
<p dir="auto">here my first version.</p>
<pre><code class="language-py">from Npp import notepad, editor, NOTIFICATION, SCINTILLANOTIFICATION, STATUSBARSECTION, MODIFICATIONFLAGS
import os

class WORD_CHECKER:
    
    def __init__(self):
        self.report = ('Total: {0:&lt;5}  '
                       'Unique: {1:&lt;5}  '
                       'Total non-misspelled: {2:&lt;5}({3:.1%})  '
                       'Total misspelled: {4:&lt;4}({5:.1%})  '
                       'Unique misspelled: {6:&lt;4}({7:.1%})')

        editor.callbackSync(self.on_modified, [SCINTILLANOTIFICATION.MODIFIED])
        notepad.callback(self.on_buffer_activated, [NOTIFICATION.BUFFERACTIVATED])
        current_dict_path = os.path.join(notepad.getPluginConfigDir(), 'Hunspell')
        current_dict_file = os.path.join(current_dict_path, 'Spanish TOP972.dic')
        with open(current_dict_file, 'r') as f:
            self.current_dict = f.read().splitlines()[1:]   # skip length entry
        self.on_buffer_activated({})


    def check_words(self):
        words = []
        editor.research('\w+', lambda m: words.append(m.group()))
        error_words = [word for word in words if word.lower() not in self.current_dict]  # insensitive word check

        total = len(words)
        unique = len(set(words))
        misspelled = len(error_words)
        misspelled_unique = len(set(error_words))
        notepad.setStatusBar(STATUSBARSECTION.DOCTYPE, 
                             self.report.format(total,
                                                unique,
                                                total-misspelled,  # non-misspelled
                                                (float(total-misspelled) / total) if misspelled else 1,  # non-misspelled %
                                                misspelled,
                                                (float(misspelled) / total) if misspelled else 0,
                                                misspelled_unique,
                                                (float(misspelled_unique) / total) if misspelled_unique else 0))


    def on_modified(self, args):
        if ((args['modificationType'] &amp; MODIFICATIONFLAGS.INSERTTEXT) or 
            (args['modificationType'] &amp; MODIFICATIONFLAGS.DELETETEXT)):
            self.check_words()


    def on_buffer_activated(self, args):
        self.check_words()


WORD_CHECKER()
</code></pre>
<p dir="auto">I <strong>assume</strong> your customized hunspell file is in <code>.\plugins\Config\Hunspell</code> and is a file<br />
having one word per line? If this is not the case, then please post a few lines how this file look like.<br />
Btw. to get a Spanish Top 1000 dict, just name it so. I named mine <code>Spanish TOP972.dic</code> and this resulted in</p>
<p dir="auto"><img src="/assets/uploads/files/1594672771826-3ca12a9e-3c43-49d0-9008-80da46bdf8b2-image.png" alt="3ca12a9e-3c43-49d0-9008-80da46bdf8b2-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Open question are</p>
<ol>
<li>How do you plan to switch between Top??? dictionaries. Is this something you do while editing a story?</li>
<li>Currently, <strong>all</strong> open documents are affected. Do you want a toggle switch mechanism?</li>
</ol>
<p dir="auto">Known issues:</p>
<ol>
<li>Currently it seems that my script calculates misspelled words differently than DSpellCheck,<br />
because with the example text I see 669 unique misspelled words whereas DSpellCheck reports 620.<br />
I’ll check this out.</li>
</ol>
<p dir="auto">If something does not work as expected, take a look into the console (Plugins-&gt;PythonScript-Show Console)<br />
to see if there is an error logged. And if you have something else in mind, let me know.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/55836</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/55836</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Mon, 13 Jul 2020 20:53:08 GMT</pubDate></item></channel></rss>