![]() Or you can return a string which provides some information with theīoolean= False parameter. If there are synonyms of the word that are basic emotions. The noun.is_emotion() guesses whether the given noun expresses an emotion by checking The noun.singular() command singularizes the given plural: print en. classical pluralization of octopus yields > children > kitchen knives > wolves > parts-of-speechĪn optional classical parameter is True by default and determines if eitherĬlassical or modern inflection is used (e.g. The ural() command pluralizes the given noun: print en. Pluralization and singularization of nouns The noun.article() returns the noun with its indefinite article: print en. ![]() > several integers > a number of modules, a number of functions, a number of strings, > a pair of lists, a pair of dictionaries, an en verb, an en sentence, > an en number, an en noun, an en list, an en content, an en adverb, > an en adjective, a None type and a plotdevice graphics cocoa Context class conjunction(( 1, 2, 3, 4, 5), generalize = True) You can also quantify the types of things in the given list, class or module: print en. > several chickens, a pair of geese and a duck Notice how goose isĬorrectly pluralized and duck has the right article. The njunction() command quantifies a list of words. > a number of chickens > hundreds of chickens The number.quantify() command quantifies the given word: print en. The number.spoken() command writes out the given number: print en. The number.ordinal() command returns the ordinal of the given number, 100 yieldsġ00th, 3 yields 3rd and twenty-one yields twenty-first: print en. ![]() and words like I, the, own, him which have little The is_connective() command returns True if the word is a connective (you, money, save, new, results, health, easy. The is_persuasive() command returns True if the given word is a ‘magic’ word The is_basic_emotion() command returns True if the given word expresses aīasic emotion (anger, disgust, fear, joy, sadness, surprise): print en. The is_html_tag() command returns True when the string is a HTML tag.Ĭategorise words as emotional, persuasive or connective The is_tag() command returns True when the given string is a tag, for example You canĪlso check for is_verb(), is_adjective() and is_adverb(): print en. The is_noun() command returns True when the given string is a noun. The is_number() command returns True when the given value is a number: print en. import enĬategorise words as nouns, verbs, numbers and more Time to load all the data the first time. You can also put it in ~/Library/Application Support/PlotDevice/. Put the en library folder in the same folder as your script so PlotDevice can find the
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |