Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9070D200C10 for ; Fri, 3 Feb 2017 10:33:15 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 8F104160B62; Fri, 3 Feb 2017 09:33:15 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 159E2160B6A for ; Fri, 3 Feb 2017 10:33:13 +0100 (CET) Received: (qmail 81096 invoked by uid 500); 3 Feb 2017 09:33:13 -0000 Mailing-List: contact commits-help@lucenenet.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: lucene-net-dev@lucenenet.apache.org Delivered-To: mailing list commits@lucenenet.apache.org Received: (qmail 81026 invoked by uid 99); 3 Feb 2017 09:33:13 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Feb 2017 09:33:13 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id C67CCE0A74; Fri, 3 Feb 2017 09:33:12 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: nightowl888@apache.org To: commits@lucenenet.apache.org Date: Fri, 03 Feb 2017 09:33:13 -0000 Message-Id: In-Reply-To: <32277a342bab4e4eb8650457ca0b7129@git.apache.org> References: <32277a342bab4e4eb8650457ca0b7129@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [2/9] lucenenet git commit: Lucene.Net.Analysis.Fr refactor: member accessibility and documentation comments archived-at: Fri, 03 Feb 2017 09:33:15 -0000 Lucene.Net.Analysis.Fr refactor: member accessibility and documentation comments Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/3dfc567f Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/3dfc567f Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/3dfc567f Branch: refs/heads/api-work Commit: 3dfc567fe20a43fdbbdc7eccd8043b986e5a9c3b Parents: f3eafac Author: Shad Storhaug Authored: Fri Feb 3 15:07:47 2017 +0700 Committer: Shad Storhaug Committed: Fri Feb 3 15:07:47 2017 +0700 ---------------------------------------------------------------------- .../Analysis/Fr/FrenchAnalyzer.cs | 54 ++++++--- .../Analysis/Fr/FrenchLightStemFilter.cs | 2 +- .../Analysis/Fr/FrenchLightStemFilterFactory.cs | 3 +- .../Analysis/Fr/FrenchLightStemmer.cs | 3 +- .../Analysis/Fr/FrenchMinimalStemFilter.cs | 2 +- .../Fr/FrenchMinimalStemFilterFactory.cs | 3 +- .../Analysis/Fr/FrenchMinimalStemmer.cs | 2 +- .../Analysis/Fr/FrenchStemFilter.cs | 9 +- .../Analysis/Fr/FrenchStemmer.cs | 118 +++++++++---------- 9 files changed, 105 insertions(+), 91 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3dfc567f/src/Lucene.Net.Analysis.Common/Analysis/Fr/FrenchAnalyzer.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Analysis.Common/Analysis/Fr/FrenchAnalyzer.cs b/src/Lucene.Net.Analysis.Common/Analysis/Fr/FrenchAnalyzer.cs index b9c01d2..5a910fe 100644 --- a/src/Lucene.Net.Analysis.Common/Analysis/Fr/FrenchAnalyzer.cs +++ b/src/Lucene.Net.Analysis.Common/Analysis/Fr/FrenchAnalyzer.cs @@ -37,18 +37,16 @@ namespace Lucene.Net.Analysis.Fr /// A default set of stopwords is used unless an alternative list is specified, but the /// exclusion list is empty by default. /// - /// - /// /// You must specify the required /// compatibility when creating FrenchAnalyzer: - ///
    - ///
  • As of 3.6, FrenchLightStemFilter is used for less aggressive stemming. - ///
  • As of 3.1, Snowball stemming is done with SnowballFilter, - /// LowerCaseFilter is used prior to StopFilter, and ElisionFilter and - /// Snowball stopwords are used by default. - ///
  • As of 2.9, StopFilter preserves position - /// increments - ///
+ /// + /// As of 3.6, is used for less aggressive stemming. + /// As of 3.1, Snowball stemming is done with , + /// is used prior to , and and + /// Snowball stopwords are used by default. + /// As of 2.9, preserves position + /// increments + /// /// ///
/// NOTE: This class uses the same @@ -56,19 +54,41 @@ namespace Lucene.Net.Analysis.Fr /// public sealed class FrenchAnalyzer : StopwordAnalyzerBase { - /// /// Extended list of typical French stopwords. /// @deprecated (3.1) remove in Lucene 5.0 (index bw compat) [Obsolete("(3.1) remove in Lucene 5.0 (index bw compat)")] - private static readonly string[] FRENCH_STOP_WORDS = new string[] { "a", "afin", "ai", "ainsi", "après", "attendu", "au", "aujourd", "auquel", "aussi", "autre", "autres", "aux", "auxquelles", "auxquels", "avait", "avant", "avec", "avoir", "c", "car", "ce", "ceci", "cela", "celle", "celles", "celui", "cependant", "certain", "certaine", "certaines", "certains", "ces", "cet", "cette", "ceux", "chez", "ci", "combien", "comme", "comment", "concernant", "contre", "d", "dans", "de", "debout", "dedans", "dehors", "delà", "depuis", "derrière", "des", "désormais", "desquelles", "desquels", "dessous", "dessus", "devant", "devers", "devra", "divers", "diverse", "diverses", "doit", "donc", "dont", "du", "duquel", "durant", "dès", "elle", "elles", "en", "entre", "environ", "est", "et", "etc", "etre", "eu", "eux", "excepté", "hormis", "hors", "hélas", "hui", "il", "ils", "j", "je", "jusqu", "jusque", "l", "la", "laquelle", "le", "lequel", "les", "lesquelles", "lesquels", "leur", "le urs", "lorsque", "lui", "là", "ma", "mais", "malgré", "me", "merci", "mes", "mien", "mienne", "miennes", "miens", "moi", "moins", "mon", "moyennant", "même", "mêmes", "n", "ne", "ni", "non", "nos", "notre", "nous", "néanmoins", "nôtre", "nôtres", "on", "ont", "ou", "outre", "où", "par", "parmi", "partant", "pas", "passé", "pendant", "plein", "plus", "plusieurs", "pour", "pourquoi", "proche", "près", "puisque", "qu", "quand", "que", "quel", "quelle", "quelles", "quels", "qui", "quoi", "quoique", "revoici", "revoilà", "s", "sa", "sans", "sauf", "se", "selon", "seront", "ses", "si", "sien", "sienne", "siennes", "siens", "sinon", "soi", "soit", "son", "sont", "sous", "suivant", "sur", "ta", "te", "tes", "tien", "tienne", "tiennes", "tiens", "toi", "ton", "tous", "tout", "toute", "toutes", "tu", "un", "une", "va", "vers", "voici", "voilà", "vos", "votre", "vous", "vu", "vôtre", "vôtres", "y", "à", "ça", "ès", "été", "être", "ô" }; + private static readonly string[] FRENCH_STOP_WORDS = new string[] { + "a", "afin", "ai", "ainsi", "après", "attendu", "au", "aujourd", "auquel", "aussi", + "autre", "autres", "aux", "auxquelles", "auxquels", "avait", "avant", "avec", "avoir", + "c", "car", "ce", "ceci", "cela", "celle", "celles", "celui", "cependant", "certain", + "certaine", "certaines", "certains", "ces", "cet", "cette", "ceux", "chez", "ci", + "combien", "comme", "comment", "concernant", "contre", "d", "dans", "de", "debout", + "dedans", "dehors", "delà", "depuis", "derrière", "des", "désormais", "desquelles", + "desquels", "dessous", "dessus", "devant", "devers", "devra", "divers", "diverse", + "diverses", "doit", "donc", "dont", "du", "duquel", "durant", "dès", "elle", "elles", + "en", "entre", "environ", "est", "et", "etc", "etre", "eu", "eux", "excepté", "hormis", + "hors", "hélas", "hui", "il", "ils", "j", "je", "jusqu", "jusque", "l", "la", "laquelle", + "le", "lequel", "les", "lesquelles", "lesquels", "leur", "leurs", "lorsque", "lui", "là", + "ma", "mais", "malgré", "me", "merci", "mes", "mien", "mienne", "miennes", "miens", "moi", + "moins", "mon", "moyennant", "même", "mêmes", "n", "ne", "ni", "non", "nos", "notre", + "nous", "néanmoins", "nôtre", "nôtres", "on", "ont", "ou", "outre", "où", "par", "parmi", + "partant", "pas", "passé", "pendant", "plein", "plus", "plusieurs", "pour", "pourquoi", + "proche", "près", "puisque", "qu", "quand", "que", "quel", "quelle", "quelles", "quels", + "qui", "quoi", "quoique", "revoici", "revoilà", "s", "sa", "sans", "sauf", "se", "selon", + "seront", "ses", "si", "sien", "sienne", "siennes", "siens", "sinon", "soi", "soit", + "son", "sont", "sous", "suivant", "sur", "ta", "te", "tes", "tien", "tienne", "tiennes", + "tiens", "toi", "ton", "tous", "tout", "toute", "toutes", "tu", "un", "une", "va", "vers", + "voici", "voilà", "vos", "votre", "vous", "vu", "vôtre", "vôtres", "y", "à", "ça", "ès", + "été", "être", "ô" + }; /// /// File containing default French stopwords. public const string DEFAULT_STOPWORD_FILE = "french_stop.txt"; /// - /// Default set of articles for ElisionFilter + /// Default set of articles for public static readonly CharArraySet DEFAULT_ARTICLES = CharArraySet.UnmodifiableSet(new CharArraySet( #pragma warning disable 612, 618 LuceneVersion.LUCENE_CURRENT, @@ -118,7 +138,7 @@ namespace Lucene.Net.Analysis.Fr } /// - /// Builds an analyzer with the default stop words (). + /// Builds an analyzer with the default stop words (). /// public FrenchAnalyzer(LuceneVersion matchVersion) #pragma warning disable 612, 618 @@ -132,7 +152,7 @@ namespace Lucene.Net.Analysis.Fr /// Builds an analyzer with the given stop words /// /// - /// lucene compatibility version + /// lucene compatibility version /// /// a stopword set public FrenchAnalyzer(LuceneVersion matchVersion, CharArraySet stopwords) @@ -144,7 +164,7 @@ namespace Lucene.Net.Analysis.Fr /// Builds an analyzer with the given stop words /// /// - /// lucene compatibility version + /// lucene compatibility version /// /// a stopword set /// @@ -158,7 +178,7 @@ namespace Lucene.Net.Analysis.Fr /// /// Creates /// - /// used to tokenize all the text in the provided . + /// used to tokenize all the text in the provided . /// /// /// built from a filtered with http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3dfc567f/src/Lucene.Net.Analysis.Common/Analysis/Fr/FrenchLightStemFilter.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Analysis.Common/Analysis/Fr/FrenchLightStemFilter.cs b/src/Lucene.Net.Analysis.Common/Analysis/Fr/FrenchLightStemFilter.cs index cd97757..0d30f9d 100644 --- a/src/Lucene.Net.Analysis.Common/Analysis/Fr/FrenchLightStemFilter.cs +++ b/src/Lucene.Net.Analysis.Common/Analysis/Fr/FrenchLightStemFilter.cs @@ -24,7 +24,7 @@ namespace Lucene.Net.Analysis.Fr /// words. /// /// To prevent terms from being stemmed use an instance of - /// or a custom that sets + /// or a custom that sets /// the before this . /// /// http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3dfc567f/src/Lucene.Net.Analysis.Common/Analysis/Fr/FrenchLightStemFilterFactory.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Analysis.Common/Analysis/Fr/FrenchLightStemFilterFactory.cs b/src/Lucene.Net.Analysis.Common/Analysis/Fr/FrenchLightStemFilterFactory.cs index 548489b..c56aeec 100644 --- a/src/Lucene.Net.Analysis.Common/Analysis/Fr/FrenchLightStemFilterFactory.cs +++ b/src/Lucene.Net.Analysis.Common/Analysis/Fr/FrenchLightStemFilterFactory.cs @@ -34,9 +34,8 @@ namespace Lucene.Net.Analysis.Fr /// public class FrenchLightStemFilterFactory : TokenFilterFactory { - /// - /// Creates a new FrenchLightStemFilterFactory + /// Creates a new public FrenchLightStemFilterFactory(IDictionary args) : base(args) { if (args.Count > 0) http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3dfc567f/src/Lucene.Net.Analysis.Common/Analysis/Fr/FrenchLightStemmer.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Analysis.Common/Analysis/Fr/FrenchLightStemmer.cs b/src/Lucene.Net.Analysis.Common/Analysis/Fr/FrenchLightStemmer.cs index 865ac8d..e7e1b79 100644 --- a/src/Lucene.Net.Analysis.Common/Analysis/Fr/FrenchLightStemmer.cs +++ b/src/Lucene.Net.Analysis.Common/Analysis/Fr/FrenchLightStemmer.cs @@ -58,13 +58,12 @@ namespace Lucene.Net.Analysis.Fr /// Light Stemmer for French. /// /// This stemmer implements the "UniNE" algorithm in: - /// Light Stemming Approaches for the French, Portuguese, German and Hungarian Languages + /// Light Stemming Approaches for the French, Portuguese, German and Hungarian Languages /// Jacques Savoy /// /// public class FrenchLightStemmer { - public virtual int Stem(char[] s, int len) { if (len > 5 && s[len - 1] == 'x') http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3dfc567f/src/Lucene.Net.Analysis.Common/Analysis/Fr/FrenchMinimalStemFilter.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Analysis.Common/Analysis/Fr/FrenchMinimalStemFilter.cs b/src/Lucene.Net.Analysis.Common/Analysis/Fr/FrenchMinimalStemFilter.cs index 2cdf579..b71cfc1 100644 --- a/src/Lucene.Net.Analysis.Common/Analysis/Fr/FrenchMinimalStemFilter.cs +++ b/src/Lucene.Net.Analysis.Common/Analysis/Fr/FrenchMinimalStemFilter.cs @@ -24,7 +24,7 @@ namespace Lucene.Net.Analysis.Fr /// words. /// /// To prevent terms from being stemmed use an instance of - /// or a custom that sets + /// or a custom that sets /// the before this . /// /// http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3dfc567f/src/Lucene.Net.Analysis.Common/Analysis/Fr/FrenchMinimalStemFilterFactory.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Analysis.Common/Analysis/Fr/FrenchMinimalStemFilterFactory.cs b/src/Lucene.Net.Analysis.Common/Analysis/Fr/FrenchMinimalStemFilterFactory.cs index ef587d9..95694da 100644 --- a/src/Lucene.Net.Analysis.Common/Analysis/Fr/FrenchMinimalStemFilterFactory.cs +++ b/src/Lucene.Net.Analysis.Common/Analysis/Fr/FrenchMinimalStemFilterFactory.cs @@ -33,9 +33,8 @@ namespace Lucene.Net.Analysis.Fr /// public class FrenchMinimalStemFilterFactory : TokenFilterFactory { - /// - /// Creates a new FrenchMinimalStemFilterFactory + /// Creates a new public FrenchMinimalStemFilterFactory(IDictionary args) : base(args) { if (args.Count > 0) http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3dfc567f/src/Lucene.Net.Analysis.Common/Analysis/Fr/FrenchMinimalStemmer.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Analysis.Common/Analysis/Fr/FrenchMinimalStemmer.cs b/src/Lucene.Net.Analysis.Common/Analysis/Fr/FrenchMinimalStemmer.cs index 973d3c5..39701d3 100644 --- a/src/Lucene.Net.Analysis.Common/Analysis/Fr/FrenchMinimalStemmer.cs +++ b/src/Lucene.Net.Analysis.Common/Analysis/Fr/FrenchMinimalStemmer.cs @@ -56,7 +56,7 @@ /// Light Stemmer for French. /// /// This stemmer implements the following algorithm: - /// A Stemming procedure and stopword list for general French corpora. + /// A Stemming procedure and stopword list for general French corpora. /// Jacques Savoy. /// /// http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3dfc567f/src/Lucene.Net.Analysis.Common/Analysis/Fr/FrenchStemFilter.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Analysis.Common/Analysis/Fr/FrenchStemFilter.cs b/src/Lucene.Net.Analysis.Common/Analysis/Fr/FrenchStemFilter.cs index f74b10a..b14365b 100644 --- a/src/Lucene.Net.Analysis.Common/Analysis/Fr/FrenchStemFilter.cs +++ b/src/Lucene.Net.Analysis.Common/Analysis/Fr/FrenchStemFilter.cs @@ -28,17 +28,16 @@ namespace Lucene.Net.Analysis.Fr /// /// /// To prevent terms from being stemmed use an instance of - /// or a custom that sets + /// or a custom that sets /// the before this . /// - /// - /// @deprecated (3.1) Use with - /// instead, which has the + /// + /// @deprecated (3.1) Use with + /// instead, which has the /// same functionality. This filter will be removed in Lucene 5.0 [Obsolete("(3.1) Use SnowballFilter with FrenchStemmer instead, which has the same functionality. This filter will be removed in Lucene 5.0")] public sealed class FrenchStemFilter : TokenFilter { - /// /// The actual token in the input stream. /// http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3dfc567f/src/Lucene.Net.Analysis.Common/Analysis/Fr/FrenchStemmer.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Analysis.Common/Analysis/Fr/FrenchStemmer.cs b/src/Lucene.Net.Analysis.Common/Analysis/Fr/FrenchStemmer.cs index ce3cc41..e67a7fb 100644 --- a/src/Lucene.Net.Analysis.Common/Analysis/Fr/FrenchStemmer.cs +++ b/src/Lucene.Net.Analysis.Common/Analysis/Fr/FrenchStemmer.cs @@ -23,20 +23,19 @@ namespace Lucene.Net.Analysis.Fr /// /// A stemmer for French words. - /// + /// /// The algorithm is based on the work of - /// Dr Martin Porter on his snowball project
- /// refer to http://snowball.sourceforge.net/french/stemmer.html
+ /// Dr Martin Porter on his snowball project + /// refer to http://snowball.sourceforge.net/french/stemmer.html /// (French stemming algorithm) for details - ///
- /// @deprecated Use instead, - /// which has the same functionality. This filter will be removed in Lucene 4.0 + /// + /// @deprecated Use instead, + /// which has the same functionality. This filter will be removed in Lucene 4.0 [Obsolete("Use FrenchStemmer instead, which has the same functionality.")] public class FrenchStemmer { private static readonly CultureInfo locale = new CultureInfo("fr-FR"); - /// /// Buffer for the terms while stemming them. /// @@ -87,10 +86,10 @@ namespace Lucene.Net.Analysis.Fr /// - /// Stems the given term to a unique discriminator. + /// Stems the given term to a unique discriminator. /// - /// java.langString The term that should be stemmed - /// java.lang.String Discriminator for term + /// The term that should be stemmed + /// Discriminator for protected internal virtual string Stem(string term) { if (!IsStemmable(term)) @@ -144,7 +143,7 @@ namespace Lucene.Net.Analysis.Fr } /// - /// Sets the search region Strings
+ /// Sets the search region strings /// it needs to be done each time the buffer was modified ///
private void SetStrings() @@ -166,7 +165,7 @@ namespace Lucene.Net.Analysis.Fr } /// - /// First step of the Porter Algorithm
+ /// First step of the Porter Algorithm /// refer to http://snowball.sourceforge.net/french/stemmer.html for an explanation ///
private void Step1() @@ -227,12 +226,12 @@ namespace Lucene.Net.Analysis.Fr } /// - /// Second step (A) of the Porter Algorithm
+ /// Second step (A) of the Porter Algorithm /// Will be performed if nothing changed from the first step - /// or changed were done in the amment, emment, ments or ment suffixes
+ /// or changed were done in the amment, emment, ments or ment suffixes /// refer to http://snowball.sourceforge.net/french/stemmer.html for an explanation ///
- /// boolean - true if something changed in the StringBuilder + /// true if something changed in the private bool Step2a() { string[] search = new string[] { "îmes", "îtes", "iraIent", "irait", "irais", "irai", "iras", "ira", "irent", "iriez", "irez", "irions", "irons", "iront", "issaIent", "issais", "issantes", "issante", "issants", "issant", "issait", "issais", "issions", "issons", "issiez", "issez", "issent", "isses", "isse", "ir", "is", "ît", "it", "ies", "ie", "i" }; @@ -240,8 +239,8 @@ namespace Lucene.Net.Analysis.Fr } /// - /// Second step (B) of the Porter Algorithm
- /// Will be performed if step 2 A was performed unsuccessfully
+ /// Second step (B) of the Porter Algorithm + /// Will be performed if step 2 A was performed unsuccessfully /// refer to http://snowball.sourceforge.net/french/stemmer.html for an explanation ///
private void Step2b() @@ -256,7 +255,7 @@ namespace Lucene.Net.Analysis.Fr } /// - /// Third step of the Porter Algorithm
+ /// Third step of the Porter Algorithm /// refer to http://snowball.sourceforge.net/french/stemmer.html for an explanation ///
private void Step3() @@ -278,7 +277,7 @@ namespace Lucene.Net.Analysis.Fr } /// - /// Fourth step of the Porter Algorithm
+ /// Fourth step of the Porter Algorithm /// refer to http://snowball.sourceforge.net/french/stemmer.html for an explanation ///
private void Step4() @@ -308,7 +307,7 @@ namespace Lucene.Net.Analysis.Fr } /// - /// Fifth step of the Porter Algorithm
+ /// Fifth step of the Porter Algorithm /// refer to http://snowball.sourceforge.net/french/stemmer.html for an explanation ///
private void Step5() @@ -324,7 +323,7 @@ namespace Lucene.Net.Analysis.Fr } /// - /// Sixth (and last!) step of the Porter Algorithm
+ /// Sixth (and last!) step of the Porter Algorithm /// refer to http://snowball.sourceforge.net/french/stemmer.html for an explanation ///
private void Step6() @@ -371,11 +370,11 @@ namespace Lucene.Net.Analysis.Fr /// /// Delete a suffix searched in zone "source" if zone "from" contains prefix + search string /// - /// java.lang.String - the primary source zone for search - /// java.lang.String[] - the strings to search for suppression - /// java.lang.String - the secondary source zone for search - /// java.lang.String - the prefix to add to the search string to test - /// boolean - true if modified + /// the primary source zone for search + /// the strings to search for suppression + /// the secondary source zone for search + /// the prefix to add to the search string to test + /// true if modified private bool DeleteFromIfPrecededIn(string source, string[] search, string from, string prefix) { bool found = false; @@ -401,11 +400,11 @@ namespace Lucene.Net.Analysis.Fr /// /// Delete a suffix searched in zone "source" if the preceding letter is (or isn't) a vowel /// - /// java.lang.String - the primary source zone for search - /// java.lang.String[] - the strings to search for suppression - /// boolean - true if we need a vowel before the search string - /// java.lang.String - the secondary source zone for search (where vowel could be) - /// boolean - true if modified + /// the primary source zone for search + /// the strings to search for suppression + /// true if we need a vowel before the search string + /// the secondary source zone for search (where vowel could be) + /// true if modified private bool DeleteFromIfTestVowelBeforeIn(string source, string[] search, bool vowel, string from) { bool found = false; @@ -436,10 +435,10 @@ namespace Lucene.Net.Analysis.Fr /// /// Delete a suffix searched in zone "source" if preceded by the prefix /// - /// java.lang.String - the primary source zone for search - /// java.lang.String[] - the strings to search for suppression - /// java.lang.String - the prefix to add to the search string to test - /// boolean - true if it will be deleted even without prefix found + /// the primary source zone for search + /// the strings to search for suppression + /// the prefix to add to the search string to test + /// true if it will be deleted even without prefix found private void DeleteButSuffixFrom(string source, string[] search, string prefix, bool without) { if (source != null) @@ -465,14 +464,14 @@ namespace Lucene.Net.Analysis.Fr } /// - /// Delete a suffix searched in zone "source" if preceded by prefix
- /// or replace it with the replace string if preceded by the prefix in the zone "from"
+ /// Delete a suffix searched in zone "source" if preceded by prefix + /// or replace it with the replace string if preceded by the prefix in the zone "from" /// or delete the suffix if specified ///
- /// java.lang.String - the primary source zone for search - /// java.lang.String[] - the strings to search for suppression - /// java.lang.String - the prefix to add to the search string to test - /// boolean - true if it will be deleted even without prefix found + /// the primary source zone for search + /// the strings to search for suppression + /// the prefix to add to the search string to test + /// true if it will be deleted even without prefix found private void DeleteButSuffixFromElseReplace(string source, string[] search, string prefix, bool without, string from, string replace) { if (source != null) @@ -507,9 +506,9 @@ namespace Lucene.Net.Analysis.Fr /// /// Replace a search string with another within the source zone /// - /// java.lang.String - the source zone for search - /// java.lang.String[] - the strings to search for replacement - /// java.lang.String - the replacement string + /// the source zone for search + /// the strings to search for replacement + /// the replacement string private bool ReplaceFrom(string source, string[] search, string replace) { bool found = false; @@ -556,7 +555,7 @@ namespace Lucene.Net.Analysis.Fr /// Test if a char is a french vowel, including accentuated ones /// /// the char to test - /// boolean - true if the char is a vowel + /// true if the char is a vowel private bool IsVowel(char ch) { switch (ch) @@ -586,11 +585,11 @@ namespace Lucene.Net.Analysis.Fr } /// - /// Retrieve the "R zone" (1 or 2 depending on the buffer) and return the corresponding string
+ /// Retrieve the "R zone" (1 or 2 depending on the buffer) and return the corresponding string /// "R is the region after the first non-vowel following a vowel - /// or is the null region at the end of the word if there is no such non-vowel"
- /// java.lang.StringBuilder - the in buffer - /// java.lang.String - the resulting string + /// or is the null region at the end of the word if there is no such non-vowel" + /// the in buffer + /// the resulting string private string RetrieveR(StringBuilder buffer) { int len = buffer.Length; @@ -631,12 +630,12 @@ namespace Lucene.Net.Analysis.Fr } /// - /// Retrieve the "RV zone" from a buffer an return the corresponding string
+ /// Retrieve the "RV zone" from a buffer an return the corresponding string /// "If the word begins with two vowels, RV is the region after the third letter, /// otherwise the region after the first vowel not at the beginning of the word, - /// or the end of the word if these positions cannot be found."
- /// java.lang.StringBuilder - the in buffer - /// java.lang.String - the resulting string + /// or the end of the word if these positions cannot be found." + /// the in buffer + /// the resulting string private string RetrieveRV(StringBuilder buffer) { int len = buffer.Length; @@ -660,7 +659,6 @@ namespace Lucene.Net.Analysis.Fr if (pos + 1 < len) { return buffer.ToString(pos + 1, len - (pos + 1)); - //return StringHelperClass.SubstringSpecial(buffer, pos + 1, len); } else { @@ -677,12 +675,12 @@ namespace Lucene.Net.Analysis.Fr /// - /// Turns u and i preceded AND followed by a vowel to UpperCase
- /// Turns y preceded OR followed by a vowel to UpperCase
- /// Turns u preceded by q to UpperCase
+ /// Turns u and i preceded AND followed by a vowel to UpperCase + /// Turns y preceded OR followed by a vowel to UpperCase + /// Turns u preceded by q to UpperCase ///
- /// java.util.StringBuilder - the buffer to treat - /// java.util.StringBuilder - the treated buffer + /// the buffer to treat + /// the treated buffer private StringBuilder TreatVowels(StringBuilder buffer) { for (int c = 0; c < buffer.Length; c++) @@ -746,7 +744,7 @@ namespace Lucene.Net.Analysis.Fr /// /// Checks a term if it can be processed correctly. /// - /// boolean - true if, and only if, the given term consists in letters. + /// true if, and only if, the given term consists in letters. private bool IsStemmable(string term) { bool upper = false;