https://github.com/atesbazi/dataimitator
Generates random data for your needs.
https://github.com/atesbazi/dataimitator
clojure clojure-library data fake fake-data random-data random-data-generation random-generation
Last synced: 5 months ago
JSON representation
Generates random data for your needs.
- Host: GitHub
- URL: https://github.com/atesbazi/dataimitator
- Owner: atesbazi
- License: epl-1.0
- Created: 2024-07-16T11:36:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-19T13:26:47.000Z (over 1 year ago)
- Last Synced: 2025-02-15T12:36:09.881Z (11 months ago)
- Topics: clojure, clojure-library, data, fake, fake-data, random-data, random-data-generation, random-generation
- Language: Clojure
- Homepage: https://dataimitator.netlify.app/
- Size: 56.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# dataimitator
[](https://clojars.org/org.clojars.atesbazi/dataimitator)
DataImitator is a Clojure library designed to generate random words, phrases and ready-to-use data in multiple languages. It prepares data to meet your needs in many areas, from address information to finance, from person information to vehicle information.
## Features
- **Multi-language support:** Generate random words in Arabic, German, English, Spanish, French and Turkish .
- **Random data:** Generate random animal species, color, company data, datetime, finance, geometry, person, phone, shopping, unit, vehicle and word.
## Installation
Add the following dependency to your `project.clj` file:
```clojure
[dataimitator "0.0.3"]
```
## Usage
You can see some example uses below.
### Random Conjunctions
Generate a random conjunction in a specified language. Defaults to English if no language is specified.
```clojure
(ns example.core
(:require [dataimitator.word.conjuction.core :refer [random-conjunction]]))
;; Generate a random English conjunction
(random-conjunction)
;; => "and"
;; Generate a random German conjunction
(random-conjunction :de)
;; => "aber"
```
### Random Nouns
Generate a random noun in a specified language. Defaults to English if no language is specified.
```clojure
(ns example.core
(:require [dataimitator.word.noun.core :refer [random-noun]]))
;; Generate a random English noun
(random-noun)
;; => "car"
;; Generate a random Spanish noun
(random-noun :es)
;; => "coche"
```
### Random Prepositions
Generate a random preposition in a specified language. Defaults to English if no language is specified.
```clojure
(ns example.core
(:require [dataimitator.word.preposition.core :refer [random-preposition]]))
;; Generate a random English preposition
(random-preposition)
;; => "in"
;; Generate a random French preposition
(random-preposition :fr)
;; => "à"
```
### Random Verbs
Generate a random verb in a specified language. Defaults to English if no language is specified.
```clojure
(ns example.core
(:require [dataimitator.word.verb.core :refer [random-verb]]))
;; Generate a random English verb
(random-verb)
;; => "run"
;; Generate a random Turkish verb
(random-verb :tr)
;; => "çalışmak"
```
### Random Lorem Ipsum Text
Generate random lorem ipsum text with a specified number of words.
```clojure
(ns example.core
(:require [dataimitator.word.lorem.core :refer [random-lorem-ipsum]]))
;; Generate random lorem ipsum text with 50 words
(random-lorem-ipsum 50)
;; => "Lorem ipsum dolor sit amet consectetur adipiscing elit..."
;; Generate random lorem ipsum text with 100 words
(random-lorem-ipsum 100)
;; => "Lorem ipsum dolor sit amet consectetur adipiscing elit..."
```
## License
Licensed under the EPL.
Copyright © 2024