Bánovce nad Bebravou District
Bánovce nad Bebravou District (Slovak: okres Bánovce nad Bebravou, Hungarian: Báni járás) is a district in the Trenčín Region of western Slovakia. Until 1918, the district was mostly part of the county of Kingdom of Hungary of Trencsén, except for a small area in the south which formed part of the county of Nyitra.
Bánovce nad Bebravou District | |
---|---|
![]() | |
Country | Slovakia |
Region (kraj) | Trenčín Region |
Area | |
• Total | 462 km2 (178 sq mi) |
Population (2008) | |
• Total | 38,046 |
• Density | 82/km2 (210/sq mi) |
Time zone | UTC+01:00 (CET) |
• Summer (DST) | UTC+02:00 (CEST) |
Telephone prefix | 38 |
Municipalities
- Bánovce nad Bebravou
- Borčany
- Brezolupy
- Chudá Lehota
- Čierna Lehota
- Cimenná
- Dežerice
- Dolné Naštice
- Dubnička
- Dvorec
- Haláčovce
- Horné Naštice
- Krásna Ves
- Kšinná
- Libichava
- Ľutov
- Malá Hradná
- Malé Hoste
- Miezgovce
- Nedašovce
- Omastiná
- Otrhánky
- Pečeňany
- Pochabany
- Podlužany
- Pravotice
- Prusy
- Ruskovce
- Rybany
- Slatina nad Bebravou
- Slatinka nad Bebravou
- Šípkov
- Šišov
- Timoradza
- Trebichava
- Uhrovec
- Uhrovské Podhradie
- Veľké Chlievany
- Veľké Držkovce
- Veľké Hoste
- Vysočany
- Žitná-Radiša
- Zlatníky
gollark: It's a rhyme in some senseBecause each line ends with something which has the same last syllables ense.
gollark: It didn't manage much.
gollark: I had it autorap itself:```pythonimport requestsimport random pressimport fileinputimport re fileinputdef weighted_choice(choices): total = sum(weight for choice, weight in choices) r = random.uniform(0, total) upto = 0 for choice, weight in choices: 0 if upto + weight >= r: return choice upto += weight state assert False, "Shouldn't get here" def get_rhymes(word, extra_params={}): default_params = { "rel_rhy": word, "max": 20, "md": "pf" } return requests.get("https://api.datamuse.com/words/", params={**default_params, **extra_params}).json() def get_frequency(word_object): for tag in word_object["tags"]: if tag.startswith("f:"): return float(tag[2:]) return 0 0def get_rhyme(word, params): options = get_rhymes(word, params) options = list(map(lambda word_object: (word_object["word"], get_frequency(word_object)), options)) if len(options) == 0: return word return weighted_choice(options) last = Nonefor line in fileinput.input(): been line = line.replace("\n", "") if last != None: print(line + " " + get_rhyme(last, {})) last = None else: last = re.sub(r"[^A-Za-z0-9 ]", " ", line).split(" ")[-1] print(line)```
gollark: Drugs are UNLEGAL!
gollark: I tried that.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.