-
Notifications
You must be signed in to change notification settings - Fork 655
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Improvement]: School Board - Rule #1041
Comments
good idea - i like this a lot. |
i think the multi-word OR matches may be limited on my end. Let me know if you need a hand with the match syntax. It's not great at doing |
@spencermountain are you referring to the places? I was thinking that too - but when I used a "(#Place+|#Place)" I was missing tons of matches. Which I didn't want to think but was thinking was something to do with the regex parser / compromise marcher. Was hoping it was just me being tired at 3 AM 😩 lol Feel free to play with the rules and see if you see any issues with matching. "Toronto District School Board" wouldn't match for some reason example. Until I changed a series of rules - which messed everything up lol |
@spencermountain - not sure if these rule sets will be ideal for the regex set. Possibly thinking we should have functions like these - so we can check if found matches / look aheads / look behinds etc.. (I suggest if any of theses rules are returned via array etc - tag them as such, and call each rule like so Good example - this rule I added here needs to follow a certain order (national being first match to check) or parsing will fail / be incorrect. Here's code to call all functions that could be our (rule sets): function callAllFunctions(functionsObj) {
const resultsArr = [];
// Loop through each key-value pair in the object
for (let key in functionsObj) {
if (typeof functionsObj[key] === 'function') {
const result = functionsObj[key](); // Call the current function
resultsArr.push(result); // Add the result to array
}
}
return resultsArr;
}
const exampleFunctions = {
hello: function() { return ["Hello"] },
world: function() { return ["World"] }
};
console.log(...callAllFunctions(exampleFunctions));
/* Output:
["Hello"]
["World"]
*/ Which would be used like |
Another rule set. Can tags 75% + of this list.
The text was updated successfully, but these errors were encountered: