Permalink
Browse files

Fix a bug in Gender.cs (see change). Add ParseArgs.Gender and .IsAnim…

…ate.
  • Loading branch information...
1 parent 0eae1ec commit 1139d533f342c228f846e9d014ae077d292a168b @bzaar committed Aug 27, 2014
@@ -21,7 +21,7 @@
</morpher>
<system.web>
- <compilation debug="true" targetFramework="4.0" />
+ <compilation debug="false" targetFramework="4.0" />
<customErrors mode="Off"/>
</system.web>
@@ -7,16 +7,9 @@ public enum Category
/// </summary>
Name,
- Male,
-
- Female,
-
- Geo,
-
- Country,
-
- City,
-
+ /// <summary>
+ /// Not a person's name.
+ /// </summary>
Other
}
}
@@ -32,7 +32,7 @@ class _Plural : Gender
{
public override T Get <T> (IGenderParadigm<T> p)
{
- return p.Masculine;
+ return p.Plural;
}
}
@@ -3,5 +3,15 @@
public class ParseArgs
{
public Category? Category {get; set;}
+
+ /// <summary>
+ /// Gender of the named person or enitity, if known.
+ /// </summary>
+ public Gender Gender {get; set;}
+
+ /// <summary>
+ /// Animacy of the named person or enitity, if known.
+ /// </summary>
+ public bool ? IsAnimate {get; set;}
}
}
@@ -2,9 +2,9 @@
{
public static class IDeclensionExtensions
{
- public static IParse Parse (this IDeclension declension, string s, Category category)
+ public static IParse Parse (this IDeclension declension, string s, Gender gender)
{
- return declension.Parse (s, new ParseArgs {Category = category});
+ return declension.Parse (s, new ParseArgs {Gender = gender});
}
}
}
@@ -2,6 +2,6 @@
{
public class ParseArgs
{
- public Category? Category {get; set;}
+ public Gender Gender {get; set;}
}
}

0 comments on commit 1139d53

Please sign in to comment.