Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

feat: change `just addnoun` to have different affixes for proper vs common noun

hippietraila325445f02ec
diff --git a/justfile b/justfile
index 041d0de38..924762344 100644
--- a/justfile
+++ b/justfile
@@ -234,7 +234,11 @@ addnoun noun:
exit 0
fi
- echo "{{noun}}/SM" >> $DICT_FILE
+ if [[ "{{noun}}" =~ ^[A-Z] ]]; then
+ echo "{{noun}}/M" >> $DICT_FILE
+ else
+ echo "{{noun}}/SM" >> $DICT_FILE
+ fi
# Search Harper's curated dictionary for a specific word
searchdictfor word: