Python 3.5, 142 137 134 112 117 110 bytes:
def g(u):import re;q=re.findall(r"\b['\-\w]+\b",u.lower());Q=q.count;return['',max(q,key=Q)][len({*map(Q,q)})>1]
This submission assumes that at least 1 word is input.
Try It Online! (Ideone)
@Maltysen I did try using re.sub() already, but it's a lot longer than using plain re.findall() to find all the words using word boundaries.
@Maltysen Also, you need to remove all other characters except "-", which I don't really know how you would do in a short manner without using regular expressions.
Actually I guess you could use navigator.userAgent to get the browser but I don't understand the values that takes on well enough to modify my pseudocode. :P
I know someone who was attacked by a wild turkey when she was young. She doesn't really like turkey meat but she eats it every chance she gets out of spite.
> The speaking section (le futur simple et le conditionnel): Le futur simple - 2 phrases Le conditionnel - 2 phrases Example practice questions for La Partie Orale : Le conditionnel : Si tu avais le temps, qu'est-ce que tu ferais ? Je … (2 phrases) Si tu étais riche, où est-ce que tu voyagerais ? Je … (2 phrases) Si tu avais beaucoup d'argent, qu'est-ce que tu achèterais ? Je … (2 phrases) Le futur simple : Décrivez ce que vous ferez avec tes amis pendant l'été. Nous… (2 phrases) Décrivez ce que vous ferez en français 3. Nous … (2 phrases)
This code answers the following question: if an item's color is determined by its material, and wood is a material, and oak is a type of wood, and wood is brown, then what color is oak?
Wow, Project Rider is awesome. It's so much faster than VS and so much more useful than MonoDevelop. I encourage anyonw who uses C# here to check it out.
class Game(String: Name, Int: Funocity){
getRating => "#{self.Name} has a funocity factor of #{self.Funocity}."
}
class FPS(String: Name, Int: Funocity) extends Game {
super Name, Funocity
super getRating
}
class CoD() extends FPS {
self.Name = "CoD"
super Funocity
getRating => "I suck :("
}
I can't help but feel like you're getting a little ahead of yourself. I speak from experience; the number one cause of death in hobby projects is shelving it for progressively more premature and smaller side projects
@quartata because that namespace is required? I've already tried all the solutions I can think of. Certain files are only being loaded once with dependencies as undefined.
Make a golfing language!
popularity-contest | code-challenge
This is a really simple task. You must make a golfing language! It must perform the following tasks. The objective is to find the shortest solution to each of these tasks, but not optimizing to the tasks. I reserve the right to add mo...
Brain-Flak (a cross between Brainf**k and Flack-Overstow) is a stack-based esoteric language. You must write a program or function that takes a string of Brain-Flak code, and evaluates it. It will also take a (possible empty) list of integers. There are the inputs to the Brain-Flak program.
The...