<commit_before>///////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2000 <NAME> and <NAME>
// 
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
// 
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
// 
// You should have received a copy of the GNU Lesser General Public
// License along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
//////////////////////////////////////////////////////////////////////////////

package opennlp.common.parse;

import opennlp.common.structure.*;
import java.util.ArrayList;
import java.util.Iterator;
    
/**
 * A set of rules that describe how lexical items should be combined
 *
 * @author      <NAME>
 * @version     $Revision: 1.1 $, $Date: 2001/11/05 14:42:54 $
 */
public interface RuleGroup {
    /**
     * Performs initialization necessary to attempt to combine
     * a set of lexical items.
     *
     * @param words the lexical items to combine
     */
    public void startMatch(Constituent[] words);
    
    /**
     * Returns the next successful combination of the lexical items
     * passed into the init method
     *
     * @return the resulting Constituent
     */
    public Constituent nextMatch();

    /**
     * Returns a way to iterate through the rules one at a time.  Notice that
     * right now there is no opennlp interface for a rule.  This will change.
     *
     * @return the iterator
     */
    public Iterator iterator();

}<commit_msg>RuleGroup now has method to apply all rules in one step.  Old methods removed.<commit_after>///////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2000 <NAME> and <NAME>
// 
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
// 
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
// 
// You should have received a copy of the GNU Lesser General Public
// License along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
//////////////////////////////////////////////////////////////////////////////

package opennlp.common.parse;

import opennlp.common.structure.*;
    
/**
 * A set of rules that describe how lexical items should be combined
 *
 * @author      <NAME>
 * @version     $Revision: 1.2 $, $Date: 2001/12/11 15:13:03 $
 */
public interface RuleGroup {

    /**
     * Applies all the rules.
     *
     * @param words the lexical items to combine
     */
    public java.util.List applyAllRules (Constituent[] words);
    
    
}
{'fraction_non_alphanumeric': 0.16890707188778492, 'fraction_numerical': 0.02104032729398013, 'mean_word_length': 2.064458370635631, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, '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': '4219905', 'n_tokens_mistral': 890, 'n_tokens_neox': 823, 'n_words': 408}