예제 #1
0
def fourth_sentence(general_conditions, accessibility, contents):
    sentence = "The previously booked properties were"
    if general_conditions:
        sentence += " %s" % concat_using_comma_and_and(general_conditions)
    if accessibility:
        sentence += " accessible for %s" % concat_using_comma_and_and(
            accessibility)
    if contents:
        sentence += " with %s" % concat_using_comma_and_and(contents)
    sentence += "."
    return sentence
예제 #2
0
def third_sentence(avg_spend_per_head, is_detached, is_complex, close_to):
    sentence = "These are"
    if avg_spend_per_head:
        sentence += " %s" % concat_using_comma_and_and(avg_spend_per_head)
    if is_detached:
        sentence += " detached"
    sentence += " properties"
    if is_complex:
        sentence += " in a complex"
    if close_to:
        sentence += " close to %s" % concat_using_comma_and_and(close_to)
    sentence += "."
    return sentence
예제 #3
0
def second_sentence(is_detached, avg_spend_per_head, stars, breakpoints):
    sentence = "She usually books"
    if is_detached:
        sentence += " detached"
    if avg_spend_per_head:
        sentence += " %s" % concat_using_comma_and_and(avg_spend_per_head)
    sentence += " properties"
    if stars:
        sentence += " with average rating %s" % select_the_best(stars)
    if breakpoints:
        sentence += " for the %s" % concat_using_comma_and_and(breakpoints)
        sentence += " breakpoints" if len(breakpoints) > 1 else " breakpoint"
    sentence += "."
    return sentence
예제 #4
0
def fourth_sentence(general_conditions, is_shortbreakok, accessibility):
    sentence = "The properties are"
    if general_conditions:
        sentence += " %s" % concat_using_comma(general_conditions)
    if is_shortbreakok:
        sentence += ", available for a short break"
    if accessibility:
        if general_conditions:
            sentence += ", and accessible to %s" % concat_using_comma_and_and(
                accessibility)
        else:
            sentence += " accessible to %s" % concat_using_comma_and_and(
                accessibility)
    sentence += "."
    return sentence
예제 #5
0
def third_sentence(is_complex, close_to):
    sentence = "She prefers properties"
    if is_complex:
        sentence += " in a complex"
    if close_to:
        sentence += " close to %s" % concat_using_comma_and_and(close_to)
    sentence += "."
    return sentence
예제 #6
0
def fifth_sentence(contents, sleeps):
    sentence = "The properties"
    if contents:
        sentence += " have %s" % concat_using_comma_and_and(contents)
    if sleeps:
        if contents:
            sentence += ", and contain %s sleeping places" % select_the_best(
                sleeps)
        else:
            sentence += " contain %s sleeping places" % select_the_best(sleeps)
    sentence += "."
    return sentence
예제 #7
0
def second_sentence(breakpoints, adults, children, is_babies):
    sentence = "The properties are usually booked"
    if breakpoints:
        sentence += " during %s" % concat_using_comma_and_and(breakpoints)
        sentence += " breakpoints" if len(breakpoints) > 1 else " breakpoints"
    if adults:
        sentence += " by a %s company of people" % select_the_best(adults)
    if children:
        sentence += " with %s" % select_the_best(children)
    if is_babies:
        sentence += " and babies"
    sentence += "."
    return sentence
예제 #8
0
def first_sentence(oac_groups):
    sentence = "The customer belongs to " + concat_using_comma_and_and(
        oac_groups)
    sentence += " OAC groups." if len(oac_groups) > 1 else " OAC group."
    return sentence
예제 #9
0
def first_sentence(regions):
    sentence = "The properties in this group are mostly from the %s" % concat_using_comma_and_and(
        regions)
    sentence += " regions." if len(regions) > 1 else " region."
    return sentence