module PreProcessor
Constants
- LAST_WORD_JUNK
- NOMEN_CONCEPTS
- NOTES
- TAXON_CONCEPTS1
- TAXON_CONCEPTS2
- TAXON_CONCEPTS3
Public Class Methods
clean(a_string)
click to toggle source
# File lib/biodiversity/parser.rb, line 24 def self.clean(a_string) [NOTES, TAXON_CONCEPTS1, TAXON_CONCEPTS2, TAXON_CONCEPTS3, NOMEN_CONCEPTS, LAST_WORD_JUNK].each do |i| a_string = a_string.gsub(i, '') end a_string = a_string.tr('ſ','s') #old 's' a_string end