- word_list_file
Optional path to a CSV file with a column named word.
If NULL and words is also NULL, all types in the slice are counted.
- output_file
Path to the output .xlsx file.
- words
Optional character vector of target words/patterns. Ignored if
word_list_file is provided. If both are NULL, all types are counted.
- collection
Optional CHILDES filter.
- language
Optional CHILDES filter.
- corpus
Optional CHILDES filter.
- age
Optional numeric: single value or c(min, max) in months.
- sex
Optional: "male" and/or "female".
- role
Optional character vector of roles to include.
- role_exclude
Optional character vector of roles to exclude.
- wildcard
Logical; treat "%" as any number of characters and
"_" as one character (token mode).
- collapse
Either "none" or "stem". Using "stem" triggers token mode.
- part_of_speech
Optional POS filter, e.g., c("n","v") (token mode).
- tier
Which tier to count from: "main" or "mor".
- normalize
Logical; if TRUE, add per-N rate columns.
- per
Integer denominator for rates (for example 1000 for per-1k).
- zipf
Logical; if TRUE, also add Zipf columns (log10 per-billion).
- include_patterns
Optional character vector of CHILDES-style patterns,
using "%" and "_" to restrict output to matching words (FREQ-style +s).
- exclude_patterns
Optional character vector of CHILDES-style patterns
to drop from the output.
- sort_by
Final sort order: "word" (alphabetical) or "frequency"
(descending Total).
- min_count
Integer; drop rows with Total < min_count (after counting).
- freq_ignore_special
Logical; if TRUE, drop "xxx", "www", and any word
starting with 0, &, +, -, or # (FREQ default ignore rules).
- db_version
CHILDES database version label to record in metadata.
- cache
Logical; if TRUE, cache CHILDES queries on disk.
- cache_dir
Optional cache directory when cache = TRUE.
- ...
Reserved for future extensions; currently unused.