-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for adjectives, adverbs, conjunctions, interjections, n…
…ouns, prepositions and verbs. Based on https://github.com/faker-js/faker/tree/3f70b0ac31520885c39fd79d18750e2701a22b28/src/locales/en/word
- Loading branch information
Showing
5 changed files
with
3,612 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package net.datafaker.providers.base; | ||
|
||
import net.datafaker.Faker; | ||
|
||
/** | ||
* Since 2.4.0 | ||
*/ | ||
public class Word extends AbstractProvider<BaseProviders> { | ||
|
||
protected Word(BaseProviders faker) { | ||
super(faker); | ||
} | ||
|
||
public String adjective() { | ||
return resolve("words.adjective"); | ||
} | ||
|
||
public String adverb() { | ||
return resolve("words.adverb"); | ||
} | ||
|
||
public String conjunction() { | ||
return resolve("words.conjunction"); | ||
} | ||
|
||
public String interjection() { | ||
return resolve("words.interjection"); | ||
} | ||
|
||
public String noun() { | ||
return resolve("words.noun"); | ||
} | ||
|
||
public String preposition() { | ||
return resolve("words.preposition"); | ||
} | ||
|
||
public String verb() { | ||
return resolve("words.verb"); | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.