Writers claim they are treated as gig workers and set to be replaced by AI