<commit_before><% content_for :title do %>
  Marriage in <%= calculator.country_name_lowercase_prefix %>
<% end %>

<% content_for :body do %>
  <% if calculator.ceremony_country == 'macao' && calculator.resident_outside_of_ceremony_country? %>
    You can only get married in <%= calculator.country_name_lowercase_prefix %> if you or your partner live there, eg on a valid work visa.

  <% end %>

  <% if calculator.resident_of_uk? %>
    <%= render partial: 'contact_embassy_of_ceremony_country_in_uk_marriage.govspeak.erb',
               locals: { calculator: calculator } %>
    <% if calculator.ceremony_country == 'morocco' %>
      <%= render partial: 'contact_laadoul.govspeak.erb' %>
    <% end %>
  <% elsif calculator.resident_of_ceremony_country? || calculator.ceremony_country == 'qatar' %>
    <%= render partial: 'contact_local_authorities_in_country_marriage.govspeak.erb',
               locals: { calculator: calculator } %>
    <% if calculator.ceremony_country == 'qatar' %>
      <%= render partial: 'gulf_states_os_consular_cni.govspeak.erb',
                 locals: { calculator: calculator } %>
      <%= render partial: 'gulf_states_os_consular_cni_local_resident.govspeak.erb',
                 locals: { calculator: calculator } %>

    <% end %>
  <% elsif calculator.resident_of_third_country? %>
    <%= render partial: 'contact_local_authorities_in_country_marriage.govspeak.erb',
               locals: { calculator: calculator } %>
    <% if calculator.ceremony_country == 'morocco' %>
      <%= render partial: 'contact_laadoul.govspeak.erb' %>
    <% end %>

  <% elsif calculator.resident_of_ceremony_country && calculator.ceremony_country == 'thailand' %>
    <%= render partial: 'contact_local_authorities_in_country_marriage.govspeak.erb',
               locals: { calculator: calculator } %>

  <% end %>


  <% if %w(ecuador).exclude?(calculator.ceremony_country) %>
    <% if calculator.resident_of_ceremony_country? %>
      <%= render partial: 'get_legal_advice.govspeak.erb' %>
    <% else %>
      <%= render partial: 'get_legal_and_travel_advice.govspeak.erb',
                 locals: { calculator: calculator } %>
    <% end %>
  <% end %>

  <% if calculator.ceremony_country == 'thailand' %>
    %You must register your marriage at an amphur office (district office) in Thailand - a religious ceremony on its own won’t be valid.%
  <% end %>

  <% if calculator.ceremony_country == 'united-arab-emirates' %>
    ^There are no civil marriages in the United Arab Emirates, but you can get married through a religious ceremony at a church or Sharia court.^

    You can only get married in the United Arab Emirates if you or your partner are resident there.
  <% end %>

  <% if %w(turkey egypt china).include?(calculator.ceremony_country) %>
    <%= render partial: 'what_you_need_to_do.govspeak.erb',
        locals: { calculator: calculator } %>
  <% elsif calculator.opposite_sex_21_days_residency_required? %>
    ##What you need to do

    You need to have been living in <%= calculator.country_name_lowercase_prefix %> for 21 days.

    You’ll be asked to provide an affirmation or affidavit document to prove you’re allowed to marry.

  <% elsif calculator.ceremony_country == 'philippines' %>
    <%= render partial: 'what_you_need_to_do.govspeak.erb' %>
  <% else %>
    <%= render partial: 'what_you_need_to_do_affirmation.govspeak.erb' %>
  <% end %>

  <% if calculator.ceremony_country == 'turkey' && calculator.resident_of_uk? %>
    Make an appointment with a UK [notary or commissioner of oaths](http://www.thenotariessociety.org.uk/find-a-notary) to swear an affidavit - a written statement that is used to formally declare that you’re free to marry.

  <% elsif calculator.ceremony_country == 'philippines' %>
    Make an appointment at the British embassy or consulate in <%= calculator.country_name_lowercase_prefix %> to swear an affirmation or affidavit (written statement of facts) that you’re free to marry.

  <% elsif calculator.ceremony_country == 'egypt' %>
    Make an appointment at the British embassy or consulate in <%= calculator.country_name_lowercase_prefix %> to make a declaration that you’re free to marry. You’ll need to bring your passport and pay a fee.


  <% elsif calculator.ceremony_country == 'china' %>
    <% if calculator.partner_is_not_national_of_ceremony_country? %>
      Make an appointment at your local British embassy or consulate in China to swear an affirmation or affidavit that you’re free to marry. You’ll need to bring your passport, your partner’s passport and pay a fee.

    <% else %>
      Make an appointment at the British embassy or consulate in China nearest to the address in your partner’s Hukou (family registration) book,  to swear an affirmation or affidavit that you’re free to marry.

      You’ll need to bring your passport, your partner’s Hukou or Chinese ID card and pay a fee.

    <% end %>
    <%= render partial: 'contact_method.govspeak.erb',
               locals: { calculator: calculator } %>

    You’ll need to complete an ‘Affirmation of marital status’ form (non-religious) or an ‘Affidavit of marital status’ form (religious). Take this with you to your appointment.

    You can download and fill in (but not sign) the forms in advance.

    $D
    [Download ‘Affirmation of marital status’](/government/publications/affirmation-form-china)

    [Download ‘Affidavit of marital status’](/government/publications/affidavit-form-china)
    $D

  <% elsif calculator.ceremony_country == 'norway' %>
    <%= render partial: 'appointment_for_affidavit_norway.govspeak.erb' %>
  <% elsif calculator.ceremony_country == 'south-korea' %>
    Make an appointment at the British embassy in South Korea to swear an affidavit (written statement of facts) that you’re free to marry. You’ll need to bring your passport, your partner’s passport and pay a fee.

  <% elsif calculator.ceremony_country == 'macao' %>
    Make an appointment at the British Consulate General Hong Kong to swear an affirmation/affadavit (written statement of facts) that you’re free to marry. You’ll need to bring your passport and pay a fee.

  <% elsif calculator.ceremony_country == 'vietnam' %>
    Make an appointment at the British embassy in <%= calculator.country_name_lowercase_prefix %> to swear an affidavit (written statement of facts) that you’re free to marry.

  <% elsif calculator.ceremony_country == 'morocco' %>
    <%= render partial: 'appointment_for_affidavit_morocco.govspeak.erb',
               locals: { calculator: calculator } %>

  <% else %>
    <%= render partial: 'appointment_for_affidavit.govspeak.erb',
               locals: { calculator: calculator } %>
  <% end %>

  <% if calculator.ceremony_country == 'vietnam' %>
    Before booking your appointment, you must complete the following documents:

    <%= render partial: "appointment_documents_in_vietnam.govspeak.erb" %>

    <%= render partial: 'legalisation_and_translation.govspeak.erb' %>
    <%= render partial: 'affirmation_os_translation_in_local_language_text.govspeak.erb' %>
  <% elsif %w(china turkey).exclude?(calculator.ceremony_country) %>
    <%= render partial: 'contact_method.govspeak.erb',
               locals: { calculator: calculator } %>
    <% if calculator.ceremony_country == 'south-korea' %>
      You’ll need to fill in an [‘Affidavit for Marriage’](/government/publications/south-korea-affidavit-of-eligibility-for-marriage-form) form stating that you’re free to marry. You can download and fill in (but not sign) the form in advance. You’ll need to take the form with you to your appointment.

      <% if calculator.partner_is_national_of_ceremony_country? %>
        You’ll need to provide supporting documents, including:

        - you partner’s Family Relationship Certificate and Marriage Status Certificate - these can be obtained from a local district office anywhere in South Korea and must be translated into English and notarised by a lawyer in Korea
        - your partner’s valid Korean ID card
        - your partner’s proof of termination of any prior marriage(s)
      <% end %>
    <% end %>
    <% if calculator.ceremony_country == 'belgium' %>
      <%= render partial: 'complete_affirmation_or_affidavit_forms.govspeak.erb' %>
      <%= render partial: 'download_and_fill_but_not_sign.govspeak.erb' %>
      <%= render partial: 'download_affidavit_and_affirmation_belgium.govspeak.erb' %>

      <%= render partial: 'partner_needs_affirmation.govspeak.erb' %>

      <%= render partial: 'required_supporting_documents.govspeak.erb',
                 locals: { calculator: calculator } %>

      <%= render partial: 'documents_guidance_belgium.govspeak.erb' %>
    <% end %>

    <% if calculator.ceremony_country == 'philippines' %>
      You’ll need to complete an [affirmation for marriage](/government/publications/marriage-in-the-philippines) (non-religious) form or an [affidavit for marriage](/government/publications/marriage-in-the-philippines) (religious) form.

      You must download and fill in (but not sign) the forms in advance. It must be typed on a computer and printed.

      ^Your partner will probably need to get an affirmation or affidavit as well.^

      <%= render partial: 'required_supporting_documents_philippines.govspeak.erb' %>

    <% end %>

    <% if calculator.ceremony_country == 'macao' %>
      <%= render partial: 'complete_affirmation_or_affidavit_forms.govspeak.erb' %>
      <%= render partial: 'download_and_fill_but_not_sign.govspeak.erb' %>
      $D
      [Download ‘Affidavit for marriage’](/government/publications/affidavit-form-macao)
      [Download ’Affirmation for marriage’](/government/publications/affirmation-form-macao)
      $D


      <%= render partial: 'required_supporting_documents_macao.govspeak.erb' %>

      <%= render partial: 'partner_probably_needs_affirmation.govspeak.erb' %>

    <% end %>

    <% if calculator.ceremony_country == 'morocco' %>
      <%= render partial: 'partner_must_get_affirmation.govspeak.erb' %>
    <% end %>

    <% if calculator.ceremony_country == 'united-arab-emirates' %>
      ^If you have dual nationality and you entered the United Arab Emirates on a non-British passport, you must contact the embassy of that country to get your affirmation or affidavit.^
<commit_msg>Remove Macao from os_affirmation outcome<commit_after><% content_for :title do %>
  Marriage in <%= calculator.country_name_lowercase_prefix %>
<% end %>

<% content_for :body do %>

  <% if calculator.resident_of_uk? %>
    <%= render partial: 'contact_embassy_of_ceremony_country_in_uk_marriage.govspeak.erb',
               locals: { calculator: calculator } %>
    <% if calculator.ceremony_country == 'morocco' %>
      <%= render partial: 'contact_laadoul.govspeak.erb' %>
    <% end %>
  <% elsif calculator.resident_of_ceremony_country? || calculator.ceremony_country == 'qatar' %>
    <%= render partial: 'contact_local_authorities_in_country_marriage.govspeak.erb',
               locals: { calculator: calculator } %>
    <% if calculator.ceremony_country == 'qatar' %>
      <%= render partial: 'gulf_states_os_consular_cni.govspeak.erb',
                 locals: { calculator: calculator } %>
      <%= render partial: 'gulf_states_os_consular_cni_local_resident.govspeak.erb',
                 locals: { calculator: calculator } %>

    <% end %>
  <% elsif calculator.resident_of_third_country? %>
    <%= render partial: 'contact_local_authorities_in_country_marriage.govspeak.erb',
               locals: { calculator: calculator } %>
    <% if calculator.ceremony_country == 'morocco' %>
      <%= render partial: 'contact_laadoul.govspeak.erb' %>
    <% end %>

  <% elsif calculator.resident_of_ceremony_country && calculator.ceremony_country == 'thailand' %>
    <%= render partial: 'contact_local_authorities_in_country_marriage.govspeak.erb',
               locals: { calculator: calculator } %>

  <% end %>


  <% if %w(ecuador).exclude?(calculator.ceremony_country) %>
    <% if calculator.resident_of_ceremony_country? %>
      <%= render partial: 'get_legal_advice.govspeak.erb' %>
    <% else %>
      <%= render partial: 'get_legal_and_travel_advice.govspeak.erb',
                 locals: { calculator: calculator } %>
    <% end %>
  <% end %>

  <% if calculator.ceremony_country == 'thailand' %>
    %You must register your marriage at an amphur office (district office) in Thailand - a religious ceremony on its own won’t be valid.%
  <% end %>

  <% if calculator.ceremony_country == 'united-arab-emirates' %>
    ^There are no civil marriages in the United Arab Emirates, but you can get married through a religious ceremony at a church or Sharia court.^

    You can only get married in the United Arab Emirates if you or your partner are resident there.
  <% end %>

  <% if %w(turkey egypt china).include?(calculator.ceremony_country) %>
    <%= render partial: 'what_you_need_to_do.govspeak.erb',
        locals: { calculator: calculator } %>
  <% elsif calculator.opposite_sex_21_days_residency_required? %>
    ##What you need to do

    You need to have been living in <%= calculator.country_name_lowercase_prefix %> for 21 days.

    You’ll be asked to provide an affirmation or affidavit document to prove you’re allowed to marry.

  <% elsif calculator.ceremony_country == 'philippines' %>
    <%= render partial: 'what_you_need_to_do.govspeak.erb' %>
  <% else %>
    <%= render partial: 'what_you_need_to_do_affirmation.govspeak.erb' %>
  <% end %>

  <% if calculator.ceremony_country == 'turkey' && calculator.resident_of_uk? %>
    Make an appointment with a UK [notary or commissioner of oaths](http://www.thenotariessociety.org.uk/find-a-notary) to swear an affidavit - a written statement that is used to formally declare that you’re free to marry.

  <% elsif calculator.ceremony_country == 'philippines' %>
    Make an appointment at the British embassy or consulate in <%= calculator.country_name_lowercase_prefix %> to swear an affirmation or affidavit (written statement of facts) that you’re free to marry.

  <% elsif calculator.ceremony_country == 'egypt' %>
    Make an appointment at the British embassy or consulate in <%= calculator.country_name_lowercase_prefix %> to make a declaration that you’re free to marry. You’ll need to bring your passport and pay a fee.


  <% elsif calculator.ceremony_country == 'china' %>
    <% if calculator.partner_is_not_national_of_ceremony_country? %>
      Make an appointment at your local British embassy or consulate in China to swear an affirmation or affidavit that you’re free to marry. You’ll need to bring your passport, your partner’s passport and pay a fee.

    <% else %>
      Make an appointment at the British embassy or consulate in China nearest to the address in your partner’s Hukou (family registration) book,  to swear an affirmation or affidavit that you’re free to marry.

      You’ll need to bring your passport, your partner’s Hukou or Chinese ID card and pay a fee.

    <% end %>
    <%= render partial: 'contact_method.govspeak.erb',
               locals: { calculator: calculator } %>

    You’ll need to complete an ‘Affirmation of marital status’ form (non-religious) or an ‘Affidavit of marital status’ form (religious). Take this with you to your appointment.

    You can download and fill in (but not sign) the forms in advance.

    $D
    [Download ‘Affirmation of marital status’](/government/publications/affirmation-form-china)

    [Download ‘Affidavit of marital status’](/government/publications/affidavit-form-china)
    $D

  <% elsif calculator.ceremony_country == 'norway' %>
    <%= render partial: 'appointment_for_affidavit_norway.govspeak.erb' %>
  <% elsif calculator.ceremony_country == 'south-korea' %>
    Make an appointment at the British embassy in South Korea to swear an affidavit (written statement of facts) that you’re free to marry. You’ll need to bring your passport, your partner’s passport and pay a fee.

  <% elsif calculator.ceremony_country == 'vietnam' %>
    Make an appointment at the British embassy in <%= calculator.country_name_lowercase_prefix %> to swear an affidavit (written statement of facts) that you’re free to marry.

  <% elsif calculator.ceremony_country == 'morocco' %>
    <%= render partial: 'appointment_for_affidavit_morocco.govspeak.erb',
               locals: { calculator: calculator } %>

  <% else %>
    <%= render partial: 'appointment_for_affidavit.govspeak.erb',
               locals: { calculator: calculator } %>
  <% end %>

  <% if calculator.ceremony_country == 'vietnam' %>
    Before booking your appointment, you must complete the following documents:

    <%= render partial: "appointment_documents_in_vietnam.govspeak.erb" %>

    <%= render partial: 'legalisation_and_translation.govspeak.erb' %>
    <%= render partial: 'affirmation_os_translation_in_local_language_text.govspeak.erb' %>
  <% elsif %w(china turkey).exclude?(calculator.ceremony_country) %>
    <%= render partial: 'contact_method.govspeak.erb',
               locals: { calculator: calculator } %>
    <% if calculator.ceremony_country == 'south-korea' %>
      You’ll need to fill in an [‘Affidavit for Marriage’](/government/publications/south-korea-affidavit-of-eligibility-for-marriage-form) form stating that you’re free to marry. You can download and fill in (but not sign) the form in advance. You’ll need to take the form with you to your appointment.

      <% if calculator.partner_is_national_of_ceremony_country? %>
        You’ll need to provide supporting documents, including:

        - you partner’s Family Relationship Certificate and Marriage Status Certificate - these can be obtained from a local district office anywhere in South Korea and must be translated into English and notarised by a lawyer in Korea
        - your partner’s valid Korean ID card
        - your partner’s proof of termination of any prior marriage(s)
      <% end %>
    <% end %>
    <% if calculator.ceremony_country == 'belgium' %>
      <%= render partial: 'complete_affirmation_or_affidavit_forms.govspeak.erb' %>
      <%= render partial: 'download_and_fill_but_not_sign.govspeak.erb' %>
      <%= render partial: 'download_affidavit_and_affirmation_belgium.govspeak.erb' %>

      <%= render partial: 'partner_needs_affirmation.govspeak.erb' %>

      <%= render partial: 'required_supporting_documents.govspeak.erb',
                 locals: { calculator: calculator } %>

      <%= render partial: 'documents_guidance_belgium.govspeak.erb' %>
    <% end %>

    <% if calculator.ceremony_country == 'philippines' %>
      You’ll need to complete an [affirmation for marriage](/government/publications/marriage-in-the-philippines) (non-religious) form or an [affidavit for marriage](/government/publications/marriage-in-the-philippines) (religious) form.

      You must download and fill in (but not sign) the forms in advance. It must be typed on a computer and printed.

      ^Your partner will probably need to get an affirmation or affidavit as well.^

      <%= render partial: 'required_supporting_documents_philippines.govspeak.erb' %>

    <% end %>

    <% if calculator.ceremony_country == 'morocco' %>
      <%= render partial: 'partner_must_get_affirmation.govspeak.erb' %>
    <% end %>

    <% if calculator.ceremony_country == 'united-arab-emirates' %>
      ^If you have dual nationality and you entered the United Arab Emirates on a non-British passport, you must contact the embassy of that country to get your affirmation or affidavit.^

{'fraction_non_alphanumeric': 0.10356449800837504, 'fraction_numerical': 0.0004085384536819528, 'mean_word_length': 3.8257762444553967, 'pattern_counts': {'":': 0, '<': 189, '<?xml version=': 0, '>': 189, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 17, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5457745', 'n_tokens_mistral': 6471, 'n_tokens_neox': 5691, 'n_words': 1717}