Text this: Electoral laws and their political consequences