Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

9 lines (8 sloc) 0.361 kB
# Use this to build new filters (for other languages, ideally) from /usr/share/dict/words style dictionaries..
#
# Call like so..
# ruby build_filter.rb /usr/share/dict/words lang/english.lang
# (replace params as necessary)
require 'lib/whatlanguage'
filter = WhatLanguage.filter_from_dictionary(ARGV[0])
File.open(ARGV[1], 'wb') { |f| f.write filter.dump }
Jump to Line
Something went wrong with that request. Please try again.