// Match that at least 5 // chars are capitalized Formation.registerRule( 'text', 'at-least-n-capitals', function() { ... } );