File:Ukrainian letter frequencies.png

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file (1,291 × 659 pixels, file size: 19 KB, MIME type: image/png)

Captions

Captions

Add a one-line explanation of what this file represents

Summary

[edit]
Description
English: Frequencies of Ukrainian letters

Code to generate this image:

words = open('/usr/share/dict/ukrainian').read().splitlines() # contains over a millon words. Requires package wukrainian to be installed

from collections import Counter
allwords = ''.join(words).lower()
counts = Counter(allwords)
freq = [100.0 * counts[c]/len(allwords) for c in itos[1:]]

import matplotlib.pyplot as plt
%matplotlib inline
f, ax = plt.subplots(figsize=(16,8))
plt.bar(range(nchars-1), freq, width=0.4)
ax.set_xticks(range(nchars-1))
ax.set_xticklabels(itos[1:])
ax.set_yticks(range(10))
ax.set_yticklabels(['%d%%' % i for i in range(10)])
ax.grid(axis='y');
f.savefig('uk_letters.png', bbox_inches='tight')
Date
Source Own work
Author Bunyk

Licensing

[edit]
I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current19:28, 10 August 2023Thumbnail for version as of 19:28, 10 August 20231,291 × 659 (19 KB)Bunyk (talk | contribs)Uploaded own work with UploadWizard

There are no pages that use this file.

File usage on other wikis

The following other wikis use this file:

Metadata