mirror of
https://github.com/adamfletcher/obsidian-cut-the-fluff.git
synced 2026-07-22 05:46:18 +00:00
Initial AI slop rules
This commit is contained in:
parent
3237e2cf9c
commit
a8dca2c1cf
2 changed files with 30 additions and 2 deletions
14
main.ts
14
main.ts
|
|
@ -21,6 +21,7 @@ interface CutTheFluffPluginSettings {
|
|||
enableRulesetJargon: boolean,
|
||||
enableRulesetComplexity: boolean,
|
||||
enableRulesetRedundancies: boolean,
|
||||
enableRulesetAiSlop: boolean,
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -31,6 +32,7 @@ const DEFAULT_SETTINGS: CutTheFluffPluginSettings = {
|
|||
enableRulesetJargon: true,
|
||||
enableRulesetComplexity: true,
|
||||
enableRulesetRedundancies: true,
|
||||
enableRulesetAiSlop: false,
|
||||
customWordList: ''
|
||||
}
|
||||
|
||||
|
|
@ -76,6 +78,7 @@ export default class CutTheFluffPlugin extends Plugin {
|
|||
...(this.settings.enableRulesetJargon ? [RuleType.Jargon] : []),
|
||||
...(this.settings.enableRulesetComplexity ? [RuleType.Complexity] : []),
|
||||
...(this.settings.enableRulesetRedundancies ? [RuleType.Redundancy] : []),
|
||||
...(this.settings.enableRulesetAiSlop ? [RuleType.AiSlop] : []),
|
||||
];
|
||||
|
||||
this.rules.resetCustomRules();
|
||||
|
|
@ -330,7 +333,16 @@ class CutTheFluggSettingsTab extends PluginSettingTab {
|
|||
this.plugin.settings.enableRulesetRedundancies = value;
|
||||
await this.plugin.saveSettings();
|
||||
}));
|
||||
|
||||
|
||||
new Setting(containerEl)
|
||||
.setName('AI Slop')
|
||||
.setDesc('')
|
||||
.addToggle(toggle => toggle
|
||||
.setValue(this.plugin.settings.enableRulesetAiSlop) // Set the initial state of the toggle from loaded settings
|
||||
.onChange(async (value) => { // This function runs whenever the toggle is changed
|
||||
this.plugin.settings.enableRulesetAiSlop = value;
|
||||
await this.plugin.saveSettings();
|
||||
}));
|
||||
|
||||
/*
|
||||
new Setting(containerEl)
|
||||
|
|
|
|||
18
rulesets.ts
18
rulesets.ts
|
|
@ -10,7 +10,8 @@ export const enum RuleType {
|
|||
Jargon = "Jaron",
|
||||
Complexity = "Complexity",
|
||||
Redundancy = "Redudancy",
|
||||
Custom = "Custom"
|
||||
Custom = "Custom",
|
||||
AiSlop = "AiSlop"
|
||||
}
|
||||
|
||||
export class Rule {
|
||||
|
|
@ -118,6 +119,21 @@ export class Rules {
|
|||
this.addRule(new Rule(RuleType.Redundancy, "one and the same", 0, 8));
|
||||
this.addRule(new Rule(RuleType.Redundancy, "final conclusion", 0, 6));
|
||||
|
||||
this.addRule(new Rule(RuleType.AiSlop, "doing real work"));
|
||||
this.addRule(new Rule(RuleType.AiSlop, "genuine tension"));
|
||||
this.addRule(new Rule(RuleType.AiSlop, "load-bearing"));
|
||||
this.addRule(new Rule(RuleType.AiSlop, "load bearing"));
|
||||
this.addRule(new Rule(RuleType.AiSlop, "that distinction matters"));
|
||||
this.addRule(new Rule(RuleType.AiSlop, "delve"));
|
||||
this.addRule(new Rule(RuleType.AiSlop, "tapestry"));
|
||||
this.addRule(new Rule(RuleType.AiSlop, "landscape"));
|
||||
this.addRule(new Rule(RuleType.AiSlop, "here's the thing"));
|
||||
this.addRule(new Rule(RuleType.AiSlop, "think of it"));
|
||||
this.addRule(new Rule(RuleType.AiSlop, "unpack"));
|
||||
this.addRule(new Rule(RuleType.AiSlop, "let's explore"));
|
||||
this.addRule(new Rule(RuleType.AiSlop, "break it down"));
|
||||
this.addRule(new Rule(RuleType.AiSlop, "pivotal"));
|
||||
|
||||
}
|
||||
|
||||
private addRule(rule: Rule) : void {
|
||||
|
|
|
|||
Loading…
Reference in a new issue