yegor256
yegor256

Reputation: 105213

Is there any Javadoc spell checker?

I wonder whether a Javadoc spell checker exists somewhere in open source? Would be great to have it pluggable as Maven plugin, but even a standalone binary distribution will work.

Upvotes: 4

Views: 1360

Answers (1)

Sean Patrick Floyd
Sean Patrick Floyd

Reputation: 299218

There actually is at least one library that does that: Spell Check Doclet

Plain Javadoc usage:

javadoc  ^
   -doclet      spellcheck.SpellCheckDoclet ^
   -classpath   "c:\Javasoft\j2sdk1.5.0_06\lib\tools.jar;" ^
   -sourcepath  "c:\Work\dev" ^
   -docletpath  ".;c:\Tools\jazzy-0.5.2\jazzy-core.jar" ^
   -subpackages "jpdf" ^
   ^
   -echo on ^
   -checkHtmlFiles ^
   -dictionary  "/Tools/jazzy-0.5.2/dict/english.0" ^
   -dictionary  "/Tools/jazzy-0.5.2/scowl_dict/american-words.10" ^
   -dictionary  "/Tools/jazzy-0.5.2/scowl_dict/american-words.20" ^
   -dictionary  "/Tools/jazzy-0.5.2/scowl_dict/american-words.35" ^
   -dictionary  "./files/dictionary_java.txt" ^
   -dictionary  "./files/dictionary_jpdf.txt" ^
   -ignoreContaining "_" ^
   -ignoreContaining "." ^
   -echo off ^
   -ignoreFile  "./files/ignoreWords_html.txt" ^
   -ignoreFile  "./files/ignoreWords_gui.txt"

Now you just need to

  1. install or deploy that library to your local repository
  2. translate the above parameters to javadoc:javadoc mojo parameters

Upvotes: 3

Related Questions