Pinned Loading
-
ruby name capitalisation method with...
ruby name capitalisation method with (non-exhaustive) exceptions for hyphens, apostrophes, lowercase (nobiliary) particles, and names with two capital letters 1def namify(value)
2array = value.to_s.split(/\b/)
3array.each_with_index do |e, i|
4next if !!e.match(/\A(-|'|’|‘|d|e|o|t|y)\Z/)
5next if !!e.match(/\A(af|da|de|di|do|du|et|la|le|of|on|to|zu)\Z/)
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.