Skip to content

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

feat: surrealness→surreality (#4101)

Andrew Dunbarc9dfe8aa67e6
diff --git a/harper-core/default_config.json b/harper-core/default_config.json
index 0d377e02b..bc7422ebf 100644
--- a/harper-core/default_config.json
+++ b/harper-core/default_config.json
@@ -5404,6 +5404,13 @@
"label": "Supposed To"
}
},
+ {
+ "Bool": {
+ "name": "Surreality",
+ "state": true,
+ "label": "Surreality"
+ }
+ },
{
"Bool": {
"name": "TakeItPersonally",
diff --git a/harper-core/src/linting/weir_rules/Surreality.weir b/harper-core/src/linting/weir_rules/Surreality.weir
new file mode 100644
index 000000000..86af64734
--- /dev/null
+++ b/harper-core/src/linting/weir_rules/Surreality.weir
@@ -0,0 +1,9 @@
+expr main (surrealness)
+
+let message "Did you mean `surreality`?"
+let description "Suggests changing `surrealness` to the more standard `surreality`."
+let kind "WordChoice"
+let becomes "surreality"
+
+test "I can make a version that is more realistic but I will always keep this because the surrealness is appealing to me." "I can make a version that is more realistic but I will always keep this because the surreality is appealing to me."
+test "A major element to the surrealness of Silent Hill 2's original PlayStation 2 FMVs was that they played at 60 frames per second." "A major element to the surreality of Silent Hill 2's original PlayStation 2 FMVs was that they played at 60 frames per second."