Quick and Dirty MZ Spellcheck Script

Hello!

New here, so let me know if I'm posting in the wrong place.

I was working on my first game and I'm a horrible speller so I was looking for something to help check my dialog. I didn't find anything immediately so I made a real quick node app to pull the talk content from the data files and throw them into the console. It says what file it's coming from and also highlights words that the spellchecker I added flag as wrong. FYI, If you use a lot of mark-up you'll get a bunch of false positives.

Looks like this:

preview_output.png


You can get it here: https://github.com/cggillotti/rpgmaker-mz-spell-check

I'm sure this is a solved problem, but in case you need a little command line thing to do sanity checks I hope this helps!
Interesting,

but I can't get it to work.

$ node rpgpm_talk_dump.js
internal/modules/cjs/loader.js:888
throw err;
^

Error: Cannot find module 'D:\git\rpgmaker-mz-spell-check\rpgpm_talk_dump.js'
←[90m at Function.Module._resolveFilename (internal/modules/cjs/loader.js:885:15)←[39m
←[90m at Function.Module._load (internal/modules/cjs/loader.js:730:27)←[39m
←[90m at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)←[39m
←[90m at internal/main/run_main_module.js:17:47←[39m {
code: ←[32m'MODULE_NOT_FOUND'←[39m,
requireStack: []
}
Thanks for letting me know!

I had changed the file name and did not update the README, sorry about that.

Please try with node rpgm_spellcheck.js and let me know if works as expected.

Documentation has been updated and I have added the default director to the repo as a convenience.

Please let me know if you have any further issues. This has only been tested on my project so far.
Yeah that worked. Though, the usefulness is strongly limited by the spellchecker taking all kinds of and ! and ? into consideration. It did find one typo though.
Agreed on the noise. I'm working on stripping out noncharacters but that introduced issues with hyphens, apostrophes, etc.

I'm hoping to improve that and get a csv export in the next rev.

Other requests are welcome here or at the repo.
New version up https://github.com/cggillotti/rpgmaker-mz-spell-check

  • Improved matching a bit.
  • Filter files function. Use -f to specify a string to match for files to scan. Eg. use Map to only scan the MapXXXX.json files. Use Actor to match Actor.json
  • Ignore list lets you ignore names, odd or new words, or repeated words from scanning so you can concentrate on the errors
  • Various under the hood changes.

Please let me know if there are issues or feature requests.

Original thread: https://forums.rpgmakerweb.com/threads/quick-and-dirty-mz-spellcheck-script.145080/