mi weka e ijo pi wile ala li pana e toki sona
This commit is contained in:
parent
981d4460f2
commit
8ff2fb2af5
|
@ -1,15 +0,0 @@
|
|||
[Unit]
|
||||
Description=ni li pali e nimi sin!
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=tess
|
||||
|
||||
Restart=on-failure
|
||||
RestartSec=10
|
||||
|
||||
WorkingDirectory=/home/tess/ilo-pali-pi-nimi-sin/target/release/
|
||||
ExecStart=/home/tess/ilo-pali-pi-nimi-sin/target/release/ilo_pali_pi_nimi_sin
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
105
nimitu.txt
105
nimitu.txt
|
@ -1,105 +0,0 @@
|
|||
emphasis, emotion or confirmation; cross-like shape, intersection, overlap
|
||||
non-cute animal, reptile, amphibian; general interjection, context-dependent; no, not, zero
|
||||
used to form a yes-no question; nothing; to hunt, forage, seek; (pre-verb) try to, attempt
|
||||
all; abundant, countless, bountiful, every, plentiful
|
||||
abundance, everything, life, universe; one hundred; between the main sentence and the context phrase
|
||||
bowing down, downward, humble, lowly, dependent; different, altered, changed, other
|
||||
bottom, lower part, under, below, floor, beneath; or; guilt, shame, shun, stigma, disgrace
|
||||
low, lower, bottom, down; choose, decide; to accuse, to single out, to expose, to dishonor, to embarrass
|
||||
bump, knock, jolt; enduring, kept, protected, safe, waiting, staying; (pre-verb) to continue to, to keep
|
||||
before the direct object; cross-like shape, intersection, overlap; between multiple subjects
|
||||
coordinates modifiers in a pi-phrase or objects of a prepostion; space, place, distance, size
|
||||
epic, cool, awesome, amazing; market, shop, fair, bazaar; beyond, exceeding, outside of, more than
|
||||
business transaction; stone, gravel, rock, pebble, lava, magma; he, she, it, they
|
||||
thing, phenomenon, object, matter; bad, negative; tool, implement, machine, device
|
||||
non-essential, irrelevant; two; centre, content, inside, between
|
||||
complicated, complex; internal organ, stomach; to think, to imagine, to believe, to remember, to recall
|
||||
a thought, an idea; Schadenfreude, indirect insult or disrespect, shade
|
||||
disgusting, obscene, sickly, toxic, unclean, unsanitary; one hundred; foot; yummy
|
||||
eliciting or stimulating a positive sensory experience; human being, person, somebody
|
||||
reflect, resound, mirror, be on the opposite/polar end of; a particular group of people; one
|
||||
indicating excitement; yellow, yellowish; to have, carry, contain, hold; goose, goose noise
|
||||
dream; nine; fish, marine animal, sea creature; to produce a sound; pirate noise
|
||||
recite, utter aloud; arriving, coming, future, summoned; anarchy, uprising, revolt, rebellion
|
||||
(pre-verb) to become, manage to, succeed in; with, among, in the company of; extrusion, protrusion, hill, mountain, button
|
||||
brown, gray; plant, vegetation; acknowledgement or acceptance; possible
|
||||
herb, leaf; to be able to, be allowed to, can, may; to use, with, by means of
|
||||
queer, LGBT+; relative clause marker; raccoons, coatis, kinkajous, olingos, ringtails, cacomistles
|
||||
raccoons, weasels, otters, skunks, red pandas; spiky, sharp, angle, point, triangular
|
||||
fruit, vegetable, mushroom; indeed, too, also, as well; split, cut, slice, sever
|
||||
sharp; cat; hard object, metal, rock, stone; clay, clinging form, dough, semi-solid, paste, powder
|
||||
to speak a non-Toki Pona language in an environment where Toki Pona is more appropriate
|
||||
air, breath, essence, spirit; animacy, life, autonomy; to notify, to let know
|
||||
hidden reality, unseen agent; autonomous being, living thing, organism; guard, protect, defend, shield, brace, fortify from outside
|
||||
alive, animate, dynamic; colorful, pigmented, painted; LGBT+
|
||||
to animate, to bring to life; casual expression of appreciation or acknowledgement; community, company, group, nation, society, tribe
|
||||
cool, fine, okay; six; laughter, chuckle, laugh, comedy, humor
|
||||
ear; between the context phrase and the main sentence; sleeping, resting
|
||||
to hear, listen; blue, green; head, mind
|
||||
pay attention to, obey; take, seize, catch, receive, get; to control, direct, guide, lead, own, plan, regulate, rule
|
||||
stairs, square, block, corner, cube; cloth, clothing, fabric, textile; zero; cold, cool
|
||||
cover, layer of privacy; uncooked, raw; between any subject except mi alone or sina alone and its verb
|
||||
to introduce a new verb for the same subject; to agree; collection, assortment, menagerie, arrangement, handful, harvest
|
||||
with laughter; seven; little, small, short; long and flexible thing
|
||||
few; a bit; young; cord, hair, rope, thread, yarn
|
||||
line, connection; flat object; before the prepositional phrase
|
||||
network, internet, connection; book, document, card, paper, record, website
|
||||
weave, braid, interlace; red, reddish; limb; six
|
||||
located at, present at, real, true, existing; arm, hand, tactile organ
|
||||
affirmative response; touch/feel physically, interact, press; five
|
||||
eye; woman, female, feminine person; parent, ancestor; caretaker, sustainer
|
||||
look at, see, examine, observe, read, watch; capybara; sapphic, lesbian, wlw
|
||||
I, me, we, us
|
||||
outdoors, world; look for, seek; door, hole, orifice, window
|
||||
(pre-verb) try to; earth, land; money, cash, savings, wealth
|
||||
old, aged, ancient; question particle modifier; creator, originator; country, territory
|
||||
soil; middle, medium, mediocre; man, male, masculine person
|
||||
gay, mlm; rat, mouse, squirrel, rabbit, rodent; husband
|
||||
neither one not the other, neither fully is nor isn't; medicine, medical; to eat, drink, consume, swallow, ingest; dead, dying
|
||||
a squishy animal; wife; back, behind, rear; fear, dread; animal noise or communication; moon, night sky object, star
|
||||
snail, slug, or sponge; artistic, entertaining, frivolous, playful, recreation; animal noise or communication; many, a lot, more, much, several, very
|
||||
monster, predator; indicates thinking, pondering, recognition, agreement, or humming; pizza; embellishment, spice; extra, additional
|
||||
ordinal number; glow, glowing light, light in the dark; unusual, strange; threat, danger
|
||||
way, custom, doctrine, method, path, road; numbers; relationship, correlation, commonality; silly
|
||||
quantity; four; transparent material/object, lack of privacy; bump, button, hill, mountain, nose, protuberance
|
||||
that, this; name, word; meow, feline sound; cross, knot, junction, intersection; three (or more), 20
|
||||
foot, leg, organ of locomotion; new; five; to make clear, to make transparent, to remove obstructions; to overlap, to fold
|
||||
newer; drunk, intoxicated; hey!; acknowledgement or acceptance; boomer, Baby Boomer, inconsiderate elder
|
||||
clear, transparent, unobstructed; eye, ocular, visual; to overstep, to exceed to a point; love, have compassion for, respect, show affection to
|
||||
vocative, imperative, or optative; goodbye, farewell, see you later, eat a good fish; sarcasm, irony; bottom, lower part
|
||||
dream, daydream, imaginative play, vision, mystical state; interjection/insult; begin, start; totalitarian
|
||||
interjection; botched, broken, damaged, harmed, messed up; stop, cease, halt; ten; bruh
|
||||
do, take action on, work on; long hard thing; open; cereal, grain; give, send, emit, provide, put, release
|
||||
twenty; good, easy; to block the way, to interrupt; brother, sister, sibling; expression of disbelief, exasperation, or excitement
|
||||
to entrance; eight; green, greenish; negative five; turn on; used to divide a second noun group that describes a first noun group
|
||||
to prevent; electric, electronic, conductive, mechanical, online; fuck
|
||||
electricity, lightning, thunder, network; heart (physical or emotional); branch, rod, stick; black, dark, unlit
|
||||
verdant, alive; car; build, make, prepare; ago, completed, ended, finished, past; bug, insect, ant, spider; annoy, annoyance, bothersome, boring
|
||||
four; hip, side; container, bag, bowl, box, cup, cupboard, drawer, vessel; bowling pin; barley, corn, oat, rice, wheat
|
||||
effective, useful, give good results; good, positive, useful; introduces a genitive noun
|
||||
unreal, false, untrue; simple, relaxed, peaceful, uncomplicated; pretend; fluffy, soft, squishy
|
||||
feeling (an emotion, a direct experience); bread, pasta; same, similar; wanting to create new words
|
||||
friendly, peaceful; three; each other; next to, nearby, vicinity; ecofriendly; four
|
||||
deceive, trick; simple; fire; outer form, outer layer
|
||||
question-word; along with (comitative), beside; area above, highest part, something elevated; body (of person or animal), physical state, torso
|
||||
something that can be compressed and will try to go back to its original shape; round or circular thing; on a higher tier/plane, enlightened, epic
|
||||
cooking element, chemical reaction, heat source; new, fresh; you; sibling, peer, fellow; face, foremost, front, wall
|
||||
image, picture, representation, symbol, mark, writing; fungus, fungi; bark, peel, shell, skin; know, be skilled in, be wise about, have information on
|
||||
left, left side, port side; animal, beast, land mammal; ball, circle, cycle, sphere, wheel; as, like; yes/no question marker
|
||||
big, heavy, large, long, tall; awe-inspiring, divine, sacred, supernatural; sun; boundary; horizontal surface, thing to put or rest something on
|
||||
additional, another, extra; to an exceedingly great extent; platypus; sweet, fragrant; of one year
|
||||
seven; sticky, magnetic; by, from, because of; but, however; (pre-verb) know how to; going to, toward
|
||||
particle introducing a quote; right, right side, starboard; water, liquid, fluid, wet substance
|
||||
important; time, duration, moment, occasion, period, situation; focus, attention, concentrate, resolution, fineness; communicate, say, speak, talk, use language, think
|
||||
indoor space; light, brightness, glow, radiance, shine; non-binary, gender-non-conforming; two; three
|
||||
adult; amaze people by being on the top of the leaderboard of a toki pona game; have sexual relations with; origin, cause
|
||||
purple; cute, innocent, adorable; magic, sorcery; light source
|
||||
mouth, lips, oral cavity, jaw; particle closing a quote; only; for
|
||||
focus on; battle, challenge, compete against, struggle against; interjection, indicating awe or amazement; bond, attract, attach, clip
|
||||
context, topic, salience, pertinent, topical, pertain to, be relevant; white, whitish; beverages; enchant; light-coloured, pale
|
||||
from the perspective of; unique, united; bird, flying creature, winged animal; strong, powerful
|
||||
hello
|
||||
separate, cut; confident, sure; trans, non-cisgender; something that appears to break the rules but doesn't
|
||||
moving; acts as a transition from one complete sentence to another; absent, away, ignored; we; building, home, house, room
|
||||
must, need, require, should, want, wish; magical, supernatural, occult, incomprehensible; to revise your old creative works and actually make them worse; (pre-verb) going to
|
||||
one; energetic, intense; leave and come back, be temporarily absent with the expectation of returning; faux edginess, provocation
|
BIN
sitelen.png
BIN
sitelen.png
Binary file not shown.
Before Width: | Height: | Size: 2.0 KiB |
|
@ -1,11 +1,11 @@
|
|||
|
||||
pub fn pana(i: usize, j: usize) -> Vec<String> {
|
||||
let lipu_nimi = std::fs::read_to_string("nimi_ale.txt").unwrap();
|
||||
let mut kulupu_nimi = Vec::new();
|
||||
for nanpa in i..j+1 {
|
||||
let lipu_nimi = std::fs::read_to_string("nimi_ale.txt").unwrap(); //o lukin e lipu pi nimi ale
|
||||
let mut kulupu_nimi = Vec::new();
|
||||
for nanpa in i..j+1 { //ijo kepeken li pana e nanpa la,
|
||||
for nimi in lipu_nimi.lines().nth(nanpa).unwrap().split_whitespace() {
|
||||
kulupu_nimi.push(String::from(nimi));
|
||||
kulupu_nimi.push(String::from(nimi)); //o pana e nimi pi nanpa ni
|
||||
}
|
||||
}
|
||||
kulupu_nimi
|
||||
kulupu_nimi //pana
|
||||
}
|
||||
|
|
|
@ -13,24 +13,24 @@ mod lipu_nimi;
|
|||
#[get("/")]
|
||||
fn nimi() -> Template {
|
||||
let lipu = o_pali_e_lipu();
|
||||
Template::render("index", &lipu)
|
||||
Template::render("index", &lipu) //o pali e lipu pi nimi sin
|
||||
}
|
||||
|
||||
#[get("/seme")]
|
||||
fn seme() -> Option<NamedFile> {
|
||||
NamedFile::open("static/ni-li-seme.html").ok()
|
||||
NamedFile::open("static/ni-li-seme.html").ok() //o pali e lipu sona
|
||||
}
|
||||
|
||||
fn main() {
|
||||
rocket::ignite().attach(Template::fairing()).mount("/", routes![nimi])
|
||||
.mount("/static", StaticFiles::from("static"))
|
||||
.mount("/", routes![seme]).launch();
|
||||
.mount("/", routes![seme]).launch(); //o pana e lipu ale
|
||||
}
|
||||
|
||||
fn o_pali_e_lipu() -> HashMap<String, String> {
|
||||
let mut ijo = HashMap::new();
|
||||
let nimi_sin = nimi_sin::pali(4);
|
||||
ijo.insert("nimisin".to_string(), nimi_sin.clone());
|
||||
ijo.insert("nimisin".to_string(), nimi_sin.clone()); //o pana e ijo tawa nasin lipu
|
||||
ijo.insert("kon".to_string(), markov(1));
|
||||
ijo.insert("toki".to_string(), toki::pali(&nimi_sin));
|
||||
ijo
|
||||
|
|
|
@ -12,11 +12,11 @@ pub fn pali(i: u8) -> String {
|
|||
|
||||
while x < mute {
|
||||
let mut nimi: char;
|
||||
if rand::random() || x > 0 {
|
||||
if rand::random() || x > 0 { //kipisi 1 la nimi ni li ken lon li ken lon ala. kipisi mute la nimi ni li wile lon
|
||||
loop {
|
||||
nimi = nimi_w();
|
||||
if nimi_pini != 'n' { break; }
|
||||
if nimi != 'n' && nimi != 'm' { break; }
|
||||
if nimi != 'n' && nimi != 'm' { break; } //o nn ala o nm ala
|
||||
}
|
||||
nimi_sin.push(nimi);
|
||||
nimi_pini = nimi;
|
||||
|
@ -24,30 +24,31 @@ pub fn pali(i: u8) -> String {
|
|||
|
||||
loop {
|
||||
nimi = nimi_e();
|
||||
//o wuwojiti ala
|
||||
if nimi_pini != 'w' && nimi_pini != 'j' && nimi_pini != 't' { break; }
|
||||
if nimi_pini == 'w' && nimi != 'o' && nimi != 'u' { break; }
|
||||
if (nimi_pini == 'j' || nimi_pini == 't') && nimi != 'i' { break; }
|
||||
}
|
||||
nimi_sin.push(nimi);
|
||||
if rand::random() {
|
||||
if rand::random() { //nimi n li ken lon. TENPO KAMA LA mi ken wile e ni: nimi n li lon la, ante li lon ala. ante li lon la, nimi n li lon ala
|
||||
nimi = 'n';
|
||||
nimi_sin.push(nimi);
|
||||
}
|
||||
nimi_pini = nimi;
|
||||
x += 1;
|
||||
}
|
||||
if lipu_nimi::pana(0,2).contains(&nimi_sin) {
|
||||
if lipu_nimi::pana(0,2).contains(&nimi_sin) { //nimi sin li sin ala la, o pali sin e nimi
|
||||
return pali(i)
|
||||
}
|
||||
nimi_sin
|
||||
nimi_sin //o pana e nimi sin
|
||||
}
|
||||
|
||||
fn nimi_w() -> char {
|
||||
fn nimi_w() -> char { //ni li pana e nimi sama nimi w
|
||||
let kulupu_nimi = lipu_nimi::pana(3,3);
|
||||
kulupu_nimi.choose(&mut rand::thread_rng()).unwrap().chars().nth(0).unwrap()
|
||||
}
|
||||
|
||||
fn nimi_e() -> char {
|
||||
fn nimi_e() -> char { //ni li pana e nimi sama nimi e
|
||||
let kulupu_nimi = lipu_nimi::pana(4,4);
|
||||
kulupu_nimi.choose(&mut rand::thread_rng()).unwrap().chars().nth(0).unwrap()
|
||||
}
|
||||
|
|
|
@ -50,7 +50,7 @@ fn pali_lili(toki: String, nimi_sin: &str, la_li_ken: bool, nimi_sin_li_lon_a: b
|
|||
if (nimi_ni == "mi" || nimi_ni == "sina") && suli_kipisi == 1 {
|
||||
mi_anu_sina = true; //nimi li nimi "mi" taso anu nimi "sina" taso
|
||||
}
|
||||
if (rand::thread_rng().gen_range(0_u8..6) == 0 || (x == suli-1 && y == suli_kipisi-1)) && !nimi_sin_li_lon {
|
||||
if (rand::thread_rng().gen_range(0_u8..4) == 0 || (x == suli-1 && y == suli_kipisi-1)) && !nimi_sin_li_lon {
|
||||
toki_sin.push_str(nimi_sin); //ilo li pana e nimi sin.
|
||||
nimi_sin_li_lon = true; //ni la, nimi sin li lon!
|
||||
} else {
|
||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue