cases.js 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. (function() {
  2. module.exports = {
  3. SingularToPlural: {
  4. "search": "searches",
  5. "switch": "switches",
  6. "fix": "fixes",
  7. "box": "boxes",
  8. "process": "processes",
  9. "address": "addresses",
  10. "case": "cases",
  11. "stack": "stacks",
  12. "wish": "wishes",
  13. "fish": "fish",
  14. "jeans": "jeans",
  15. "funky jeans": "funky jeans",
  16. "my money": "my money",
  17. "category": "categories",
  18. "query": "queries",
  19. "ability": "abilities",
  20. "agency": "agencies",
  21. "movie": "movies",
  22. "archive": "archives",
  23. "index": "indices",
  24. "wife": "wives",
  25. "safe": "saves",
  26. "half": "halves",
  27. "move": "moves",
  28. "salesperson": "salespeople",
  29. "person": "people",
  30. "spokesman": "spokesmen",
  31. "man": "men",
  32. "woman": "women",
  33. "basis": "bases",
  34. "diagnosis": "diagnoses",
  35. "diagnosis_a": "diagnosis_as",
  36. "datum": "data",
  37. "medium": "media",
  38. "stadium": "stadia",
  39. "analysis": "analyses",
  40. "node_child": "node_children",
  41. "child": "children",
  42. "experience": "experiences",
  43. "day": "days",
  44. "comment": "comments",
  45. "foobar": "foobars",
  46. "newsletter": "newsletters",
  47. "old_news": "old_news",
  48. "news": "news",
  49. "series": "series",
  50. "species": "species",
  51. "quiz": "quizzes",
  52. "perspective": "perspectives",
  53. "ox": "oxen",
  54. "photo": "photos",
  55. "buffalo": "buffaloes",
  56. "tomato": "tomatoes",
  57. "dwarf": "dwarves",
  58. "elf": "elves",
  59. "information": "information",
  60. "equipment": "equipment",
  61. "bus": "buses",
  62. "status": "statuses",
  63. "status_code": "status_codes",
  64. "mouse": "mice",
  65. "louse": "lice",
  66. "house": "houses",
  67. "octopus": "octopi",
  68. "virus": "viri",
  69. "alias": "aliases",
  70. "portfolio": "portfolios",
  71. "vertex": "vertices",
  72. "matrix": "matrices",
  73. "matrix_fu": "matrix_fus",
  74. "axis": "axes",
  75. "testis": "testes",
  76. "crisis": "crises",
  77. "rice": "rice",
  78. "shoe": "shoes",
  79. "horse": "horses",
  80. "prize": "prizes",
  81. "edge": "edges",
  82. "cow": "kine",
  83. "database": "databases",
  84. "safe": "safes",
  85. "belief": "beliefs",
  86. "gaffe": "gaffes",
  87. "cafe": "cafes",
  88. "caffe": "caffes",
  89. "life": "lives",
  90. "wife": "wives",
  91. "save": "saves",
  92. "fife": "fifes",
  93. "carafe": "carafes",
  94. "giraffe": "giraffes",
  95. "elf": "elves",
  96. "calf": "calves",
  97. "bookshelf": "bookshelves",
  98. "wolf": "wolves",
  99. "half": "halves",
  100. "meatloaf": "meatloaves",
  101. "loaf": "loaves",
  102. "oaf": "oafs",
  103. "jefe": "jefes",
  104. "afterlife": "afterlives",
  105. },
  106. CamelToUnderscore: {
  107. "Product": "product",
  108. "SpecialGuest": "special_guest",
  109. "ApplicationController": "application_controller",
  110. "Area51Controller": "area51_controller"
  111. },
  112. UnderscoreToLowerCamel: {
  113. "product": "product",
  114. "Widget": "widget",
  115. "special_guest": "specialGuest",
  116. "application_controller": "applicationController",
  117. "area51_controller": "area51Controller"
  118. },
  119. CamelToUnderscoreWithoutReverse: {
  120. "HTMLTidy": "html_tidy",
  121. "HTMLTidyGenerator": "html_tidy_generator",
  122. "FreeBSD": "free_bsd",
  123. "HTML": "html"
  124. },
  125. CamelWithModuleToUnderscoreWithSlash: {
  126. "Admin.Product": "admin/product",
  127. "Users.Commission.Department": "users/commission/department",
  128. "UsersSection.CommissionDepartment": "users_section/commission_department"
  129. },
  130. ClassNameToForeignKeyWithUnderscore: {
  131. "Person": "person_id",
  132. "MyApplication.Billing.Account": "account_id"
  133. },
  134. ClassNameToForeignKeyWithoutUnderscore: {
  135. "Person": "personid",
  136. "MyApplication.Billing.Account": "accountid"
  137. },
  138. ClassNameToTableName: {
  139. "PrimarySpokesman": "primary_spokesmen",
  140. "NodeChild": "node_children"
  141. },
  142. UnderscoreToHuman: {
  143. "employee_salary": "Employee salary",
  144. "employee_id": "Employee",
  145. "underground": "Underground"
  146. },
  147. MixtureToTitleCase: {
  148. 'bullet_record': 'Bullet Record',
  149. 'BulletRecord': 'Bullet Record',
  150. 'bullet web service': 'Bullet Web Service',
  151. 'Bullet Web Service': 'Bullet Web Service',
  152. 'Bullet web service': 'Bullet Web Service',
  153. 'bulletwebservice': 'Bulletwebservice',
  154. 'Bulletwebservice': 'Bulletwebservice',
  155. "pavan's code": "Pavan's Code",
  156. "Pavan's code": "Pavan's Code",
  157. "pavan's Code": "Pavan's Code"
  158. },
  159. OrdinalNumbers: {
  160. "-1": "-1st",
  161. "-2": "-2nd",
  162. "-3": "-3rd",
  163. "-4": "-4th",
  164. "-5": "-5th",
  165. "-6": "-6th",
  166. "-7": "-7th",
  167. "-8": "-8th",
  168. "-9": "-9th",
  169. "-10": "-10th",
  170. "-11": "-11th",
  171. "-12": "-12th",
  172. "-13": "-13th",
  173. "-14": "-14th",
  174. "-20": "-20th",
  175. "-21": "-21st",
  176. "-22": "-22nd",
  177. "-23": "-23rd",
  178. "-24": "-24th",
  179. "-100": "-100th",
  180. "-101": "-101st",
  181. "-102": "-102nd",
  182. "-103": "-103rd",
  183. "-104": "-104th",
  184. "-110": "-110th",
  185. "-111": "-111th",
  186. "-112": "-112th",
  187. "-113": "-113th",
  188. "-1000": "-1000th",
  189. "-1001": "-1001st",
  190. "0": "0th",
  191. "1": "1st",
  192. "2": "2nd",
  193. "3": "3rd",
  194. "4": "4th",
  195. "5": "5th",
  196. "6": "6th",
  197. "7": "7th",
  198. "8": "8th",
  199. "9": "9th",
  200. "10": "10th",
  201. "11": "11th",
  202. "12": "12th",
  203. "13": "13th",
  204. "14": "14th",
  205. "20": "20th",
  206. "21": "21st",
  207. "22": "22nd",
  208. "23": "23rd",
  209. "24": "24th",
  210. "100": "100th",
  211. "101": "101st",
  212. "102": "102nd",
  213. "103": "103rd",
  214. "104": "104th",
  215. "110": "110th",
  216. "111": "111th",
  217. "112": "112th",
  218. "113": "113th",
  219. "1000": "1000th",
  220. "1001": "1001st"
  221. },
  222. UnderscoresToDashes: {
  223. "street": "street",
  224. "street_address": "street-address",
  225. "person_street_address": "person-street-address"
  226. }
  227. };
  228. }).call(this);