A vs. AN before <substitution> #76


  • Accepted
Open
  • rismisner created this issue Oct 7, 2009
    Owner

    What is the enhancement in mind? How should it look and feel?

    Just add water and... Whoa it's a <spellname>!
    sounds good in theory, but disappoints me when it comes out as
    Just add water and... Whoa it's a Acherus Deathcharger

    I would like a way to correct the A vs. AN in cases like this when the substitution could begin with a vowel or consonant.

  • rismisner added the tags Accepted Enhancment Oct 7, 2009
  • rismisner posted a comment Oct 7, 2009

    The substitution engine really hates this issue.

    If I say "Whoa it's <an> <spellname>"

    The architecture of the function that parses this doesn't have visibility into the greater context, all it sees is the one word at a time, so when it looks at <an> it can't see ahead to the value of <spellname> to choose "a" or "an"

    So this needs to become part of the <spellname> substitution in order to calculate it all at once, something like

    Whoa it's <a spellname>

    This would be an "article form" to generate the correct article "a" or "an" in a way that would work with any substitution.

  • rismisner posted a comment Oct 7, 2009

    A space may actually be sufficient for the parser, but I am concerned about additional future enhancements to the substitution forms and whether some other delimiter should be used, the way pronoun forms use | and gender forms use *, perhaps this should use something else like maybe "-" to keep it safe from future enhancements that might add additional prefixes. <a-spellname> instead of <a spellname>

  • rismisner posted a comment Oct 7, 2009

    French has a similar issue with gender forms of articles, because you would want to say Le Paladin if talking about a male paladin, but La Paladin if talking about a female one.

    Sadly I think support for foreign language forms is a long ways off and will require additional supporting team members who are fluent in English and those languages to make special accomodations for things like this. But I try to keep the issues in mind to avoid coding myself into a corner.

  • rismisner posted a comment Oct 7, 2009

    French articles provide a nice model for very complex grammar forms.

    Le, La, Les, L' are all valid forms of "the" and are dependant on aspects of the following noun. Le and La call for gender forms of articles, Les calls for a plural form of the article, and L' is equivalent to the A vs. AN check for a leading vowel.

    How can an article substitution form such as <a spellname> be processed to support foreign languages like French which have this level of complexity in the nature of the article?

  • rismisner posted a comment Oct 7, 2009

    Capitalization is also an issue since we might want to use "A" or "a" (with similar impact on foreign languages)

  • rismisner posted a comment Oct 7, 2009

    An alternative approach to this issue might be to run a more general grammar correction search on the entire string, after it has been processed for substitutions, and correct for any cases of a or an which are misused. Instead of putting it on the end-user to work it into the substitutions.

    This would be easy to achieve in English for "a" vs. "an" but wouldn't work for the French side of the issue because the gender and plurality information would be lost by this point

  • GaronneBC posted a comment Nov 29, 2010

    I think you might want to offer users to define some kind of translation tables as part of a substitution (sorry, I've no idea how to call it clearer...)

    Giving us some kind of macro options would be an idea. I'd like to enhance the <randomsubstitutions> system to be able to receive parameters (like race or gender or what ever) and be used by us users to add those language variations into SpeakinSpell.

    I'm sure there might be an awful lot of conditionals to add, but I guess this could solve a lot of problems.

  • rismisner removed their assignment Jan 16, 2013
  • rismisner assigned issue to _ForgeUser228323 Jan 16, 2013
  • rismisner posted a comment Jan 16, 2013

    I'm re-assigning all my tickets to Duerma

  • rismisner posted a comment May 7, 2015

    Unassigning tickets that are not actively being worked on

  • rismisner unassigned issue from _ForgeUser228323 May 7, 2015

To post a comment, please login or register a new account.