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
{{ message }}
This repository has been archived by the owner on May 10, 2023. It is now read-only.
consttokenizeWords=require('talisman/tokenizers/words');// Minimum of words that qualify as a sentence.constMIN_WORDS=1;// Maximum of words allowed per sentence to keep recordings in a manageable duration.constMAX_WORDS=16;constINVALIDATIONS=[{fn: (sentence)=>{constwords=tokenizeWords(sentence);returnwords.length<MIN_WORDS||words.length>MAX_WORDS;},error: `Number of words must be between ${MIN_WORDS} and ${MAX_WORDS} (inclusive)`,},{regex: /[0-9]+/,error: 'Sentence should not contain numbers',},{regex: /[<>+*#@^[\]()/]/,error: 'Sentence should not contain symbols',},{// Any words consisting of uppercase letters or uppercase letters with a period// inbetween are considered abbreviations or acronyms.// This currently also matches fooBAR but we most probably don't want that either// as users wouldn't know how to pronounce the uppercase letters.regex: /[A-Z]{2,}|[A-Z]+\.*[A-Z]+/,error: 'Sentence should not contain abbreviations',}];module.exports={INVALIDATIONS,};
The text was updated successfully, but these errors were encountered:
When you asked about it I was under the impression that you will need help implementing it. Happy to see you figured it out. In that case I would suggest you create a Pull Request with those suggestions if you want to :)
@MichaelKohler
We need to add rules for igbo here
these are changes i propose (tweaking the
en.js
)The text was updated successfully, but these errors were encountered: