prompt-lists 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +26 -0
- data/LICENSE +33 -0
- data/README.md +9 -0
- data/lib/prompt_lists.rb +69 -0
- data/lists/animal/all.yml +1872 -0
- data/lists/animal/bird.yml +918 -0
- data/lists/animal/deep-sea.yml +74 -0
- data/lists/animal/dinosaur.yml +93 -0
- data/lists/animal/dog-breed.yml +670 -0
- data/lists/animal/insect.yml +133 -0
- data/lists/animal/mammal.yml +186 -0
- data/lists/animal/popular.yml +145 -0
- data/lists/animal/sea.yml +89 -0
- data/lists/architecture/architect.yml +190 -0
- data/lists/architecture/extreme-location.yml +49 -0
- data/lists/architecture/famous-building.yml +126 -0
- data/lists/architecture/home.yml +22 -0
- data/lists/architecture/interior-design.yml +39 -0
- data/lists/architecture/interior-keywords.yml +104 -0
- data/lists/architecture/material.yml +103 -0
- data/lists/architecture/style-detailed.yml +104 -0
- data/lists/architecture/style.yml +202 -0
- data/lists/architecture/term.yml +130 -0
- data/lists/art/painting-keyword.yml +74 -0
- data/lists/art/painting-technique.yml +98 -0
- data/lists/art/pattern.yml +104 -0
- data/lists/art/sculpture.yml +74 -0
- data/lists/art/style.yml +64 -0
- data/lists/art/type.yml +193 -0
- data/lists/artist/all.yml +1762 -0
- data/lists/artist/common.yml +416 -0
- data/lists/artist/concept.yml +37 -0
- data/lists/artist/dark.yml +19 -0
- data/lists/artist/illustrator.yml +60 -0
- data/lists/artist/painter.yml +42 -0
- data/lists/artist/with-really-strong-affects.yml +31 -0
- data/lists/artist/with-strong-affects.yml +151 -0
- data/lists/audio/sound-effect.yml +254 -0
- data/lists/audio/voice.yml +102 -0
- data/lists/business/brand.yml +291 -0
- data/lists/character/action.yml +53 -0
- data/lists/character/anime.yml +169 -0
- data/lists/character/child.yml +58 -0
- data/lists/character/coming-of-age.yml +55 -0
- data/lists/character/famous.yml +375 -0
- data/lists/character/fantasy.yml +56 -0
- data/lists/character/general.yml +109 -0
- data/lists/character/monster.yml +116 -0
- data/lists/character/romantic.yml +43 -0
- data/lists/character/scifi.yml +55 -0
- data/lists/character/superhero.yml +101 -0
- data/lists/character/supervillain.yml +98 -0
- data/lists/cinematic/animation-studio.yml +68 -0
- data/lists/cinematic/animation.yml +19 -0
- data/lists/cinematic/coloring.yml +39 -0
- data/lists/cinematic/director.yml +51 -0
- data/lists/cinematic/effect.yml +38 -0
- data/lists/cinematic/genre.yml +180 -0
- data/lists/cinematic/keyword.yml +24 -0
- data/lists/cinematic/moment.yml +220 -0
- data/lists/cinematic/movie.yml +147 -0
- data/lists/cinematic/shot.yml +58 -0
- data/lists/color/all.yml +50 -0
- data/lists/color/depth.yml +14 -0
- data/lists/color/modifier.yml +58 -0
- data/lists/color/pair.yml +29 -0
- data/lists/color/palette.yml +77 -0
- data/lists/color/perception.yml +25 -0
- data/lists/fashion/accessory.yml +157 -0
- data/lists/fashion/cultural.yml +102 -0
- data/lists/fashion/designer.yml +107 -0
- data/lists/fashion/feminine.yml +156 -0
- data/lists/fashion/hair-feminine.yml +104 -0
- data/lists/fashion/hair-masculine.yml +104 -0
- data/lists/fashion/masculine.yml +177 -0
- data/lists/fashion/outfit-feminine.yml +65 -0
- data/lists/fashion/scifi.yml +54 -0
- data/lists/fashion/type.yml +54 -0
- data/lists/feeling/all.yml +491 -0
- data/lists/feeling/creepy.yml +43 -0
- data/lists/feeling/loved.yml +110 -0
- data/lists/feeling/melancholy.yml +49 -0
- data/lists/feeling/unnerved.yml +46 -0
- data/lists/food/bakery.yml +157 -0
- data/lists/food/bbq.yml +28 -0
- data/lists/food/breakfast.yml +73 -0
- data/lists/food/cuisine.yml +104 -0
- data/lists/food/fast.yml +149 -0
- data/lists/food/fruit.yml +113 -0
- data/lists/geography/city.yml +22959 -0
- data/lists/geography/country.yml +203 -0
- data/lists/geography/ethnic-group.yml +1062 -0
- data/lists/geography/language.yml +615 -0
- data/lists/geography/nationality.yml +210 -0
- data/lists/geography/territory.yml +83 -0
- data/lists/interaction/couple-negative.yml +54 -0
- data/lists/interaction/couple.yml +53 -0
- data/lists/interaction/crowd.yml +48 -0
- data/lists/interaction/group.yml +54 -0
- data/lists/interaction/individual-detailed.yml +198 -0
- data/lists/interaction/individual.yml +408 -0
- data/lists/keyword/detailed.yml +44 -0
- data/lists/keyword/epic.yml +113 -0
- data/lists/keyword/genre.yml +49 -0
- data/lists/keyword/glitch.yml +42 -0
- data/lists/keyword/modifier.yml +73 -0
- data/lists/keyword/negative.yml +73 -0
- data/lists/keyword/prayer.yml +53 -0
- data/lists/keyword/trending.yml +22 -0
- data/lists/keyword/unusual.yml +48 -0
- data/lists/music/artist.yml +100 -0
- data/lists/music/bpm.yml +24 -0
- data/lists/music/composer.yml +176 -0
- data/lists/music/drop.yml +24 -0
- data/lists/music/dynamic.yml +75 -0
- data/lists/music/feature.yml +189 -0
- data/lists/music/genre.yml +290 -0
- data/lists/music/harmony.yml +24 -0
- data/lists/music/instrument.yml +194 -0
- data/lists/music/key.yml +24 -0
- data/lists/music/melody.yml +81 -0
- data/lists/music/mode.yml +41 -0
- data/lists/music/mood.yml +103 -0
- data/lists/music/percussive.yml +135 -0
- data/lists/music/recording.yml +57 -0
- data/lists/music/rhythm.yml +13 -0
- data/lists/music/song-section.yml +23 -0
- data/lists/music/vocal.yml +104 -0
- data/lists/nature/area-of-natural-beauty.yml +618 -0
- data/lists/nature/flower.yml +501 -0
- data/lists/nature/scene-modifier.yml +35 -0
- data/lists/nature/scene.yml +68 -0
- data/lists/nature/texture.yml +153 -0
- data/lists/nature/tree.yml +144 -0
- data/lists/nature/tropical-houseplant.yml +90 -0
- data/lists/nature/weather.yml +130 -0
- data/lists/nature/wood.yml +52 -0
- data/lists/people/beautiful-feminine.yml +30 -0
- data/lists/people/beautiful-masculine.yml +91 -0
- data/lists/people/body-type.yml +101 -0
- data/lists/people/celebrity.yml +641 -0
- data/lists/people/common.yml +18 -0
- data/lists/people/couple.yml +21 -0
- data/lists/people/dance.yml +103 -0
- data/lists/people/expression.yml +434 -0
- data/lists/people/eye-color.yml +30 -0
- data/lists/people/festival.yml +43 -0
- data/lists/people/group.yml +46 -0
- data/lists/people/hobby.yml +281 -0
- data/lists/people/job.yml +604 -0
- data/lists/people/pose-portrait.yml +29 -0
- data/lists/people/pose.yml +153 -0
- data/lists/photography/camera.yml +170 -0
- data/lists/photography/film.yml +84 -0
- data/lists/photography/landscape-keyword.yml +70 -0
- data/lists/photography/landscape-subject-detailed.yml +145 -0
- data/lists/photography/landscape-subject.yml +114 -0
- data/lists/photography/lens.yml +70 -0
- data/lists/photography/light.yml +124 -0
- data/lists/photography/photographer.yml +948 -0
- data/lists/photography/portrait-photographer.yml +68 -0
- data/lists/photography/summer-scene.yml +34 -0
- data/lists/photography/summer-tropical-beach.yml +54 -0
- data/lists/photojournalism/news-extreme.yml +54 -0
- data/lists/photojournalism/news-normal.yml +43 -0
- data/lists/photojournalism/news-specific.yml +24 -0
- data/lists/photojournalism/style-protest.yml +24 -0
- data/lists/photojournalism/types.yml +73 -0
- data/lists/places/home.yml +87 -0
- data/lists/places/public.yml +78 -0
- data/lists/places/room.yml +35 -0
- data/lists/plot/action.yml +54 -0
- data/lists/plot/arthouse.yml +54 -0
- data/lists/plot/fantasy.yml +54 -0
- data/lists/plot/general.yml +97 -0
- data/lists/plot/horror.yml +53 -0
- data/lists/plot/musical.yml +54 -0
- data/lists/plot/romance.yml +53 -0
- data/lists/plot/scifi-cyberpunk.yml +54 -0
- data/lists/plot/scifi.yml +173 -0
- data/lists/plot/war.yml +54 -0
- data/lists/science/astronomy.yml +34 -0
- data/lists/science/chemical-element.yml +122 -0
- data/lists/science/geometry.yml +93 -0
- data/lists/science/medical-images.yml +24 -0
- data/lists/set/describe-style.yml +17760 -0
- data/lists/set/describe-subject.yml +255734 -0
- data/lists/set/parti.yml +1639 -0
- data/lists/thing/adjective.yml +54 -0
- data/lists/thing/city.yml +193 -0
- data/lists/thing/everyday.yml +228 -0
- data/lists/thing/fantasy.yml +130 -0
- data/lists/thing/gadget.yml +405 -0
- data/lists/thing/icon.yml +115 -0
- data/lists/thing/office.yml +53 -0
- data/lists/thing/scary.yml +193 -0
- data/lists/thing/sci-fi.yml +192 -0
- data/lists/thing/space.yml +141 -0
- data/lists/thing/summer.yml +52 -0
- data/lists/time/century.yml +16 -0
- data/lists/time/day-of-year.yml +369 -0
- data/lists/time/decade.yml +15 -0
- data/lists/time/era.yml +91 -0
- data/lists/time/time-of-day.yml +34 -0
- data/lists/time/year.yml +205 -0
- data/lists/typography/feature.yml +46 -0
- data/lists/typography/font-type.yml +45 -0
- data/lists/typography/font.yml +68 -0
- data/lists/typography/style.yml +57 -0
- data/lists/typography/word-art.yml +104 -0
- data/lists/vehicle/car.yml +309 -0
- data/lists/vehicle/classic-car.yml +148 -0
- data/lists/vehicle/famous-car.yml +42 -0
- data/lists/vehicle/fast-car.yml +81 -0
- data/lists/vehicle/type.yml +104 -0
- data/lists/video-game/action.yml +300 -0
- data/lists/video-game/designer.yml +54 -0
- data/lists/video-game/engine.yml +54 -0
- data/lists/video-game/game.yml +306 -0
- data/lists/video-game/region.yml +104 -0
- data/lists/word/adjective.yml +4984 -0
- data/lists/word/adverb.yml +1802 -0
- data/lists/word/noun.yml +24393 -0
- data/lists/word/verb.yml +9954 -0
- metadata +299 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c0719a4ca57aa5a503c6b75a3738ab02fa9b5e7b1e39f04342df11e331d60f8b
|
4
|
+
data.tar.gz: 2d06005433ed1af9caf552d4a70ece60bffff996ce67e04105ac2113c0a8c478
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a11c80a4b2df1b536f0f21a2c982f7671c3d5fb27e553b7be30f17028138c9ae53a843704b221e33f639ad537fcfbf9f3730502b4c74ff3fd4a28817e8949322
|
7
|
+
data.tar.gz: 32eebde5492e826b64d77113cdac16d752c38668e415d19965d75524ca800b2eac32d6b3d2e516159d59084d1866d451334621eb05d09bc11e03e9dea284403d
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
prompt-lists (0.0.1)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
byebug (11.1.3)
|
10
|
+
coderay (1.1.3)
|
11
|
+
method_source (1.1.0)
|
12
|
+
pry (0.14.2)
|
13
|
+
coderay (~> 1.1)
|
14
|
+
method_source (~> 1.0)
|
15
|
+
|
16
|
+
PLATFORMS
|
17
|
+
arm64-darwin-22
|
18
|
+
ruby
|
19
|
+
|
20
|
+
DEPENDENCIES
|
21
|
+
byebug
|
22
|
+
prompt-lists!
|
23
|
+
pry
|
24
|
+
|
25
|
+
BUNDLED WITH
|
26
|
+
2.5.5
|
data/LICENSE
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
Word lists from Spicy-Proton
|
2
|
+
https://github.com/schmich/spicy-proton
|
3
|
+
Copyright (c) 2017 Chris Schmich
|
4
|
+
|
5
|
+
---
|
6
|
+
|
7
|
+
Cities lists from Datasets
|
8
|
+
https://github.com/datasets/world-cities
|
9
|
+
Licensed under the Creative Common Attribution License
|
10
|
+
|
11
|
+
---
|
12
|
+
|
13
|
+
The MIT License (MIT)
|
14
|
+
|
15
|
+
Copyright (c) 2024 @dreamingtulpa
|
16
|
+
|
17
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
18
|
+
of this software and associated documentation files (the "Software"), to deal
|
19
|
+
in the Software without restriction, including without limitation the rights
|
20
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
21
|
+
copies of the Software, and to permit persons to whom the Software is
|
22
|
+
furnished to do so, subject to the following conditions:
|
23
|
+
|
24
|
+
The above copyright notice and this permission notice shall be included in
|
25
|
+
all copies or substantial portions of the Software.
|
26
|
+
|
27
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
28
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
29
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
30
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
31
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
32
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
33
|
+
THE SOFTWARE.
|
data/README.md
ADDED
data/lib/prompt_lists.rb
ADDED
@@ -0,0 +1,69 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'yaml'
|
4
|
+
|
5
|
+
module PromptLists
|
6
|
+
VERSION = '0.0.1'
|
7
|
+
|
8
|
+
class List
|
9
|
+
def initialize(file_paths)
|
10
|
+
@sublists = file_paths.map do |file_path|
|
11
|
+
id = File.basename(file_path, ".yml").gsub("-", "_").to_sym
|
12
|
+
Hash[id, file_path]
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
def method_missing(method_name, *args)
|
17
|
+
sublist = @sublists.find { |sublist| sublist.key?(method_name) }
|
18
|
+
if sublist
|
19
|
+
Sublist.new(sublist.values[0])
|
20
|
+
else
|
21
|
+
super
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
def respond_to_missing?(method_name, include_private = false)
|
26
|
+
sublist = @sublists.find { |sublist| sublist.key?(method_name) }
|
27
|
+
sublist || super
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
class Sublist
|
32
|
+
def initialize(file_path)
|
33
|
+
@file_path = file_path
|
34
|
+
@content = File.read(@file_path)
|
35
|
+
if @content =~ /^(---\s*\n.*?\n?)^(---\s*$\n?)/m
|
36
|
+
@items = @content[($1.size + $2.size)..-1].split("\n")
|
37
|
+
@metadata = YAML.load($1)
|
38
|
+
end
|
39
|
+
@metadata = (@metadata || {})
|
40
|
+
end
|
41
|
+
attr_accessor :metadata, :items
|
42
|
+
end
|
43
|
+
|
44
|
+
class << self
|
45
|
+
def method_missing(method_name, *args)
|
46
|
+
list_name = method_name.to_s
|
47
|
+
if list_exists?(list_name)
|
48
|
+
result = load_list(list_name)
|
49
|
+
List.new(result)
|
50
|
+
else
|
51
|
+
super
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
def respond_to_missing?(method_name, include_private = false)
|
56
|
+
list_exists?(method_name.to_s) || super
|
57
|
+
end
|
58
|
+
|
59
|
+
private
|
60
|
+
|
61
|
+
def load_list(list_name)
|
62
|
+
Dir["lists/#{list_name}/*.yml"]
|
63
|
+
end
|
64
|
+
|
65
|
+
def list_exists?(list_name)
|
66
|
+
Dir.exist?("lists/#{list_name}")
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|