✅ Check
Perform various checks on associated research activity data
Example Usage
# Check a specific research activity index
acorn check path/to/project/index.json
# Check all research activity data in a directory
acorn check path/to/project/
Categories of Checks
- 🏛️ Schema Validation: Ensure that all data files conform to the expected schema
- ✨ Prose Quality: Analyze written content for grammar, spelling, and more
- 👓 Readability: Evaluate the readability of textual content using established metrics1
- 🔗 Link Integrity: Verify that all hyperlinks within the content are valid and reachable
- 📊 Data Consistency: Check for consistency and completeness in datasets
- 🚦 Convention Adherence: Ensure that naming conventions and organizational standards are followed
Customization Options
The check command supports several flags and options to customize its behavior (e.g., skipping certain checks, disabling certain behaviors, etc.)
Include --exit-on-first-error to stop execution upon encountering the first error.
Bypass verifying the checksum of downloaded artifacts with --skip-verify-checksum2
Skip checks
--skip schema: Skip schema validation checks--skip prose: Skip prose quality checks--skip readability: Skip readability checks--skip schema,prose: Skip both schema validation and prose quality checks (works for any combination of categories)--disable-website-checks: Disable all website-related checks (link integrity, etc.)
Note
--disable-website-checksis redundant whenacorn --offlineis used for commands that need to be run in offline environments.
Configure Readability
Readability can be configured by passing options directly to the command line or via a .env file. Command line options override .env settings.
--readability-metric <METRIC>: Specify which readability metric to use- Set
READABILITY_METRICin your.envfile to choose the readability metric. Default metric isfkgl(Flesch-Kincaid Grade Level). - Set
MAX_ALLOWED_FKGLin your.envfile to define the maximum acceptable FKGL score. Each metric has its own corresponding maximum score variable (e.g.,MAX_ALLOWED_ARIfor Automated Readability Index).
Example .env file
Configure ACORN to use the Coleman-Liau Index (CLI) readability metric with a maximum allowed score of 14.0 (default value is 12.0):
READABILITY_METRIC=cli
MAX_ALLOWED_CLI=14.0
-
See the readability module documentation for a full list of available readability metrics. ↩
-
⚠️ Skipping checksum verification may expose you to security risks. Use this option with caution. ↩