diff --git a/misc/aqp-spellcheck-allowed.csv b/misc/aqp-spellcheck-allowed.csv new file mode 100644 index 000000000..d25eab88b --- /dev/null +++ b/misc/aqp-spellcheck-allowed.csv @@ -0,0 +1,429 @@ +x +acomp +Adatte +addBracket +addVolumeFraction +Ahwahnee +Aitchison +al +Amonette +amonium +Amundson +Andesite +andesitic +Andesitic +andic +andisol +Andisol +andisols +Andisols +antigorite +aov +Ap +arenic +argillic +attr +Auberry +Barcel'o +Bas +bbox +biogeochemistry +Biometrika +Bish +Boettinger +Bourgault +Brauer +Brunizem +Brus +Bt +Buntley +Burrough +Busacca +Bw +CaCl +cageo +cambic +Cambic +Carre +CARRE +casoilresource +catenary +CEC +Centore +centroid +Centroid +centroids +chamosite +checkHzDepthLogic +Chernozem +Chipera +chr +chroma +Chroma +chromas +chronosequence +CIE +CIELAB +Claassen +Climosequence +clinochlore +CMD +cmol +coeficient +colorBucket +colorContrast +ColorMunki +colorscience +colorspace +colour +Colour +compositional +Compositional +containingMunsell +contrastClass +coords +cpm +CRS +CuCl +Dahlgren +DCB +ddply +dE +debeaudette +denormalization +Denormalization +denormalize +denormalized +densic +depthcols +depthLogic +depthSlices +desgn +df +dH +dirichlet +dithionite +doi +DOI +doMC +dop +doSMP +dplyr +Duplicte +dV +EDTA +edu +Egozcue +ellps +eluvial +eluviation +env +epipedon +estimateSoilDepth +et +extractable +farver +foreach +formular +fragipans +fragvoltot +frameify +FS +FULLPAT +Gaans +genhz +Genuchten +geo +Geochemical +geoderma +Geoderma +Geosciences +getArgillicBounds +getMineralSoilSurfaceDepth +getPlowLayerDepth +getSoilDepthClass +getSurfaceHorizonDepth +Girard +github +Github +Glahn +GLenn +Gley +glom +glomalin +GLS +glycoprotein +Godsey +goethite +Gower's +gradational +granodiorite +greyscale +grossarenic +GRS +Grunwald +grv +GRV +harmonizations +HD +Heuvelink +hgroup +Hilger +Hmisc +Honcut +Hootsmans +horizonation +horizonNames +HSD +http +https +huePosition +hydric +hz +hzdepb +hzdept +hzDepthTest +hzdesgn +hzdesgncol +hzID +hzidcol +hzidname +hzname +hztexclcol +hzTransitionProbabilities +idcol +idname +illuminant +illuvial +illuviation +init +initSoilProfileList +ISPRS +ISSN +Jetse +Jos +KCl +KCL +Kearney +Kempen +knitr +kPa +Kubelka +Lahar +landform +lawr +Leij +levelplot +LFS +lithic +lithologic +llply +longlat +Lowndes +lpp +LPP +MAAT +magrittr +manganiferous +Manganiferous +Matsuyama +McGahan +mds +MDS +melanization +Melanization +missingDataGrid +missingDepth +MLRA +mollic +Mollic +mollisols +Mollisols +montmorillonite +morphologic +Morphologic +mpspline +multinominal +Multinominal +Munk +munsell +Munsell +MunsellBookOfColorGlossy +munsellinterpol +Musick +mycorrhizal +na +naïve +NAD +Naesset +naeve +NASIS +ncss +NCSS +Nemecek +nm +nMDS +nontronite +Nostra +nrcs +NRCS +nrow +NSE +NSSL +num +O'Geen +OAc +oc +OSACA +overlapOrGap +oxalate +Padarian +pam +Pantone +paralithic +parseHSD +Pawlowsky +pedogenic +pedology +Pedology +pedometric +pedon +pedonPC +PedonPC +pedons +pedotransfer +Perrone +Photogrammetric +Photogrammetry +php +phylo +pID +pii +plotSPC +plyr +ppt +precip +prepanel +priori +Probabalistic +profileApply +proj +PROJ +projargs +PSC +PSCs +PSCS +quantized +Rabenhorst +Rebecca +rebuildSPC +redoximorphic +Redoximorphic +reflectance +Reflectance +renotation +rescale +rescaled +rgb +rgeos +rit +rmse +Roecker +Rossiter +Rowley +rrggbb +rruff +RRUFF +RStudio +rubification +Rubification +rv +Sadler +sameDepth +saprolite +Schaap +Schriften +Schwertmann +sciencedirect +Scopus +sd +SDA +seg +Serpentinite +Serpentinitic +sharpshootR +sil +SIL +siteNames +Skovlin +sl +SL +slicedHSD +sliceHSD +soilColorIndices +soilDB +soilProfileCollection +SoilProfileCollection +SoilProfileCollections +SoilProfiles +soilReports +SoilWeb +Southard +sp +SpatialPoints +SpatialPointsDataFrame +spc +SPC +SPCs +SpectralReflectancesOf +spectrophotometer +splined +splitProfiles +sRGB +ssc +SSSA +sssaj +Stiftung +Stoorvogel +stringsAsFactors +subalpine +subhorizons +subtractive +tauW +taxonname +tbl +texcl +texmod +Thierry +tonalite +towgs +TukeyHSD +twotheta +ucdavis +Umbric +uncoated +usda +USDA +USGS +Uwe +validSpatialData +validSpatialPoints +vectorized +VEOIIS +Verrecchia +VFS +VOFEIT +VWC +Wegener +Westin +WGS +wikipedia +wtd +WVC +www +XRD +XYZ +Yuba +Zelazny +Zeng +Zhang diff --git a/misc/spellcheck.R b/misc/spellcheck.R new file mode 100644 index 000000000..d3ad1006b --- /dev/null +++ b/misc/spellcheck.R @@ -0,0 +1,17 @@ +# +# check spelling, after ignoring a set of package-specific allowed words +# +# install.packages("spelling") + +do_spellcheck <- function() { + allowed.words <- read.csv("misc/aqp-spellcheck-allowed.csv")$x + res <- spelling::spell_check_package() + idx <- which(!res[,1] %in% allowed.words) + if (length(idx) == 0) { + message("No spelling errors found.") + return(data.frame()) + } + return(res[idx,]) +} + +do_spellcheck()