Advertisement
Mangus875

Sentence maker

Oct 25th, 2023 (edited)
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. Sentence constructor format:
  2.  
  3. Modifiers: Modify other tokens
  4. ^ capitalize next token
  5. ^^ next token in all caps
  6. \ escape next token
  7. <?></?> optional token (see line 44 for example)
  8. [T0|T1|T#] multiple options (see line 51 for example)
  9.  
  10. Word form modifiers: Specifies word form of previous token. Can be combined together (see line 59 for example)
  11. ~s~ plural
  12. ~o~ posessive
  13. ~p~ past tense
  14. ~c~ present tense
  15. ~f~ future tense
  16.  
  17. Swappable Words: Randomly selected from a list
  18. noun any object
  19. name any proper noun
  20. pnoun pronoun - given with proper noun
  21. adj adjective
  22. verb verb
  23. advb adverb
  24.  
  25. Swappable word attributes:
  26. swap:specific specify what type of word to use (see line 36 for example)
  27.  
  28. Special: Specific tokens - typically to correct grammar
  29. <a> gets replaced with "a" or "an"
  30. {} groups together other tokens (see line 64 for example)
  31. /id used to connect different tokens together (see line 70 for example)
  32.  
  33.  
  34.  
  35.  
  36. swap:specific example:
  37. Template:
  38. "Did you see the $adj:color$ dog?"
  39. Possible results:
  40. "Did you see the red dog?"
  41. "Did you see the blue dog?"
  42. "Did you see the green dog?"
  43.  
  44. <?> example:
  45. Template:
  46. "I will <?>not </?>be on-time today."
  47. Possible results:
  48. "I will not be on-time today."
  49. "I will be on-time today."
  50.  
  51. [T0|T1|t#] example:
  52. Note: T0, T1, and T# are placeholders for actual tokens.
  53. Template:
  54. "They are going shopping at [Walmart|Target|HyVee] tomorrow."
  55. Possible results:
  56. "They are going shopping at Walmart tomorrow."
  57. "They are going shopping at Target tomorrow."
  58. "They are going shopping at HyVee tomorrow."
  59.  
  60. Word form modifiers:
  61. Instead of doing ~s~~o~ to have posessive plural you can do ~so~
  62. Note: You cannot have multiple tense modifiers together (e.g. ~pc~ is invalid)
  63.  
  64. Grouping tokens:
  65. Template:
  66. "^^{i don't want to!}"
  67. Result:
  68. "I DON'T WANT TO!"
  69.  
  70. id example:
  71. Template:
  72. "^$name:person/1$ is so nice. ^$pnoun/1$ helped an old lady cross the road earlier."
  73. Possible results:
  74. "John is so nice. He helped an old lady cross the road earlier."
  75. "Mary is so nice. She helped an old lady cross the road earlier."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement