<commit_before>---
layout: false
title: Dictionary
source_url: https://github.com/alphagov/govuk-developer-docs/blob/master/data/dictionary.yml
edit_url: https://github.com/alphagov/govuk-developer-docs/edit/master/data/dictionary.yml
---

<% content_for :sidebar do %>
  <ul>
    <li>
      <%= link_to 'Dictionary', '/dictionary.html' %>
      <ul>
      <% data.dictionary.each do |entry| %>
        <li>
          <%= link_to entry.word, "/dictionary.html##{entry.word.parameterize}-definition" %>
        </li>
      <% end %>
      </ul>
    </li>
  </ul>
<% end %>

<% wrap_layout :layout_with_sidebar do %>
  <%= partial 'partials/header' %>

  <% data.dictionary.each do |entry| %>
    <div>
      <h2 id=<%="#{entry.word.parameterize}"%>-definition>
        <%= entry.word %>
      </h2>
      <small>Synonyms: <%= entry.synonyms %></small>
      <p><%= entry.description %></p>
    </div><commit_msg>Only show synonyms if they're present<commit_after>---
layout: false
title: Dictionary
source_url: https://github.com/alphagov/govuk-developer-docs/blob/master/data/dictionary.yml
edit_url: https://github.com/alphagov/govuk-developer-docs/edit/master/data/dictionary.yml
---

<% content_for :sidebar do %>
  <ul>
    <li>
      <%= link_to 'Dictionary', '/dictionary.html' %>
      <ul>
      <% data.dictionary.each do |entry| %>
        <li>
          <%= link_to entry.word, "/dictionary.html##{entry.word.parameterize}-definition" %>
        </li>
      <% end %>
      </ul>
    </li>
  </ul>
<% end %>

<% wrap_layout :layout_with_sidebar do %>
  <%= partial 'partials/header' %>

  <% data.dictionary.each do |entry| %>
    <div>
      <h2 id=<%="#{entry.word.parameterize}"%>-definition>
        <%= entry.word %>
      </h2>
      <% if entry.synonyms.present? %>
        <small>Synonyms: <%= entry.synonyms %></small>
      <% end %>
      <p><%= entry.description %></p>
    </div>
{'fraction_non_alphanumeric': 0.19968470835522859, 'fraction_numerical': 0.0021019442984760903, 'mean_word_length': 2.6827852998065764, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 63, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5294305', 'n_tokens_mistral': 729, 'n_tokens_neox': 649, 'n_words': 109}