aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSkylar Stein <[email protected]>2015-10-11 15:14:07 -0700
committerSkylar Stein <[email protected]>2015-10-11 15:14:07 -0700
commitf596d0470f43f5954fc72185d3fe32ff9d243ff2 (patch)
tree6a0c6aed7504ccc7511623399a27b7f8cb3c4e63
parent5a91b6432bd043eb897681dc4c2952fd20e657a2 (diff)
downloadfaker-f596d0470f43f5954fc72185d3fe32ff9d243ff2.tar.xz
faker-f596d0470f43f5954fc72185d3fe32ff9d243ff2.zip
hacker.phrase - generate random string for each lexical instance
-rw-r--r--lib/hacker.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/hacker.js b/lib/hacker.js
index 463f8331..f15c5194 100644
--- a/lib/hacker.js
+++ b/lib/hacker.js
@@ -24,11 +24,11 @@ var Hacker = function (faker) {
self.phrase = function () {
var data = {
- abbreviation: self.abbreviation(),
- adjective: self.adjective(),
- ingverb: self.ingverb(),
- noun: self.noun(),
- verb: self.verb()
+ abbreviation: self.abbreviation,
+ adjective: self.adjective,
+ ingverb: self.ingverb,
+ noun: self.noun,
+ verb: self.verb
};
var phrase = faker.random.arrayElement([ "If we {{verb}} the {{noun}}, we can get to the {{abbreviation}} {{noun}} through the {{adjective}} {{abbreviation}} {{noun}}!",