Skip to content

Instantly share code, notes, and snippets.

@releu
Last active December 22, 2015 01:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save releu/6393984 to your computer and use it in GitHub Desktop.
Save releu/6393984 to your computer and use it in GitHub Desktop.
files = Dir["./**/*"]
files.each do |file|
next if File.directory?(file)
words = []
begin
File.read(file).scan /[\u0400-\u04FF\-]+/ do |match|
words << match
end
rescue # skip images, fonts, etc
end
if words.any?
puts file, words.uniq.join(" ")
end
end
# then go to http://api.yandex.ru/speller/ and check spelling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment