Code we use - Preview

typescript
const rules = [
  {
    condition: sentences.length === 0,
    apply: () => {
      penalty += 1;
    },
  },
  {
    condition: true,
    apply: () => {
      sentences.forEach((sentence) => {
        const wordCount = sentence.split(/\s+/).filter(Boolean).length;

        if (wordCount > WORDS_LIMIT_PER_SENTENCE) {
          const excessWords = wordCount - WORDS_LIMIT_PER_SENTENCE;
          penalty += Math.round(excessWords * 0.025 * 100) / 100;

          exceededSentences.push(sentence);
        }
      });
    },
  },
];

Structure your content with proper header tags (H1 for the main title, H2 for subheadings, H3 for smaller sections). This helps both readers and search engines to understand the hierarchy of information.