You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Use -v to ensure aspell is installed before running
if ! command -v aspell &>/dev/null; then
echo "❌ Error: 'aspell' is not installed. (Hint: brew install aspell / apt install aspell)"
exit 1
fi
# Set Internal Field Separator to handle filenames with spaces
IFS=$'\n'
set -f
for file in $(find . -name "*.md"); do
if [ ! -s "$file" ]; then
continue
fi
echo "Reading: $file"
# Get typos list from aspell
output="$(aspell list --lang=en_US --mode=markdown --home-dir=. --personal=./wordlist.txt --ignore-case=true --camel-case --add-sgml-skip name list <"$file")"
if [ $? -eq 0 ]; then
if [[ -n "$output" ]]; then
# Use sort -u to avoid repeating the same word multiple times