<commit_before><?xml version="1.0" encoding="utf-8"?>
<!--
Rules: Grammar and Typos
See tagset.txt for the meaning of the POS tags
Copyright (C) 2001-2006 <NAME> (http://www.danielnaber.de)
$Id: grammar.xml,v 1.58 2006-07-30 22:23:33 dnaber Exp $
-->
<rules lang="en">

   <!-- TODO: make more general -->
   <rule id="ANALYSIS_IF" name="Possible typo 'analysis if(of)'">
      <pattern mark_from="2"><token postag="DT"/><token regexp="yes">analysis|kind</token><token>if</token></pattern>
      <message>Did you mean <em>of</em>?</message>
      <example type="correct">An Analysis <em>of</em> Rock Music</example>
      <example type="incorrect">An Analysis <em>if</em> Rock Music</example>
	  <example type="incorrect">That's the kind <em>if</em> blue I like.</example>
	  <example type="correct">This is the kind of journalism that I like!</example>
   </rule>
	
	<rule id="SHELL_WE" name="Possible typo 'shell(shall) we'">
		<pattern case_sensitive="yes" mark_from="1" mark_to="-2">
			<token postag="SENT_START"/>
			<token>Shell</token>
			<token regexp="yes">we|I</token>
			<token postag="VB"/>
		</pattern>
		<message>Did you mean <em>Shall</em>?</message>
		<example type="correct">Shall we dance?</example>
		<example type="incorrect"><em>Shell</em> we dance?</example>
	</rule>
	<rule id="WE_SHELL" name="Possible typo 'we shell(shall)'">
		<pattern case_sensitive="yes" mark_from="2" mark_to="-1">
			<token postag="SENT_START"/>
			<token regexp="yes">We|I</token>
			<token>shell</token>
			<token postag="VB"/>
		</pattern>
		<message>Did you mean <em>shall</em>?</message>
		<example type="correct">We shall overcome.</example><commit_msg>simple new English rule ('equally as')<commit_after><?xml version="1.0" encoding="utf-8"?>
<!--
Rules: Grammar and Typos
See tagset.txt for the meaning of the POS tags
Copyright (C) 2001-2006 <NAME> (http://www.danielnaber.de)
$Id: grammar.xml,v 1.59 2006-08-02 18:55:17 milek_pl Exp $
-->
<rules lang="en">

	<rule id="EQUALLY_AS" name="equally+as (equally)">
		<pattern>
			<token>equally</token>
			<token>as</token>
		</pattern>
		<message>Don't say 'equally as'. You can use either <em>equally</em> or <em>as</em> on its own. When comparing two nouns, use <em>just as</em>.</message>
		<example type="incorrect">This model is <em>equally as</em> effective.</example>
		<example type="correct">This model is equally effective.</example>
		<example type="correct">My new grammar checker is just as slow as the old one.</example>
	</rule>
	
   <!-- TODO: make more general -->
   <rule id="ANALYSIS_IF" name="Possible typo 'analysis if(of)'">
      <pattern mark_from="2"><token postag="DT"/><token regexp="yes">analysis|kind</token><token>if</token></pattern>
      <message>Did you mean <em>of</em>?</message>
      <example type="correct">An Analysis <em>of</em> Rock Music</example>
      <example type="incorrect">An Analysis <em>if</em> Rock Music</example>
	  <example type="incorrect">That's the kind <em>if</em> blue I like.</example>
	  <example type="correct">This is the kind of journalism that I like!</example>
   </rule>
	
	<rule id="SHELL_WE" name="Possible typo 'shell(shall) we'">
		<pattern case_sensitive="yes" mark_from="1" mark_to="-2">
			<token postag="SENT_START"/>
			<token>Shell</token>
			<token regexp="yes">we|I</token>
			<token postag="VB"/>
		</pattern>
		<message>Did you mean <em>Shall</em>?</message>
		<example type="correct">Shall we dance?</example>
		<example type="incorrect"><em>Shell</em> we dance?</example>
	</rule>
	<rule id="WE_SHELL" name="Possible typo 'we shell(shall)'">
		<pattern case_sensitive="yes" mark_from="2" mark_to="-1">
			<token postag="SENT_START"/>
			<token regexp="yes">We|I</token>
			<token>shell</token>
			<token postag="VB"/>
		</pattern>
		<message>Did you mean <em>shall</em>?</message>
		<example type="correct">We shall overcome.</example>
{'fraction_non_alphanumeric': 0.192, 'fraction_numerical': 0.01703225806451613, 'mean_word_length': 4.785074626865671, 'pattern_counts': {'":': 0, '<': 161, '<?xml version=': 2, '>': 161, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 4}, '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': '810813', 'n_tokens_mistral': 1485, 'n_tokens_neox': 1349, 'n_words': 332}