Tue, Oct 6
Unresolved issues (to be resolved in the next version):
– Repetitions of jargon words are highlighted, but not counted in density. This as such is not a big issue – let there be some free writing. For now this remains as it is.
– The maximum text limit is between 800-900 words. Needs extension.
– In the output text the paras are joined together without a space in the dump.
– If a part of a word is found in the jargon list (eg: ‘increment’ in ‘incrementally’), the part is recognized and highlighted, but alternative suggestion is not shown in the logged in version.
– Capitalized versions of jargon words are counted for jargon density, but not highlighted.
– ‘&’ and ‘#’ cut off user pasted text. So these should be deleted by the user before checking for jargon.
Tue, Oct 6
Tue, Sep 29
The file pathnames in the js file are now simply “xyz.php”, no leading absolute path.
Sun, Sep 27
So this indicator is an approximation – can’t show decimal densities displayed, only larger ranges. Using /10 because the imp densities will usually be <3. The '&' cutting off text issue has been fixed by the programmer.
Sat, Sep 26
Fri, Sep 25
– Repeated words in user text are highlighted, but not counted in density. This as such is not an issue – let there be some free writing. Can be fixed if needed (the count function will need additional coding to also count repeats), but for now it is stat.
– The maxchar limit needs extension. Not sure what is causing the limitation.
– The output text could be in the same format as user pasted it. But a dump is fine as well, just in case.
– The paras are joined together without a space in the dump.
– Parts of words are recognized (increment in incrementally) and highlighted, but alternative suggestion is not shown in the logged in version.
– Capitalization – in case of a mismatch, the word is recognized, but not highlighted in the dump.
– & and # are cutting off user pasted text.
Fri, Sep 25
The missing data flaw is fixed. The fetch_array line was repeated twice in the old code, and I had not dared to replace it lest it broke the code. All words and phrase are now counted. Hurray!
The suggestion list was not showing up in the logged in version. Fixed it by importing it in a variable only when the count ticked up, and added a dummy “” check in if-else, to stop it from repeating with the while loop. Thanks again to stackoverflow for the missing data fix.
The while-if combination is deadly. “Your ‘if’ is a big peacemaker, much virtue in ‘if’ ” – Shakespeare. Even in 21c.
Thu, Sep 24
I am now doing it the other way – fetch the words/phrases from the db, find it in the user text with stristr, count it in the user text using substr_count. Also separated the highlighter – using str_replace. Thanks to stackoverflow and w3schools and other sites for the coding help. I did it!!!
This method is faster – it will access the db only as many times as the number of its entries. The old code accessed the entire db as many times as there were words in the user input. So if the user pastes 200 words to check and the db has 600 entries:
Old code: 200 x 600 = 12,000 db queries
The new code: 600 db queries
The rest of it works with strings inside code.
Wed, Sep 23
Tue, Sep 22
Mon, Sep 21
Sun, Sep 20
Sat, Sep 19
Fri, Sep 18